From e333b6ffa2566ecfaa1d21de553ae6bccd0fcf4d Mon Sep 17 00:00:00 2001 From: Toby Archer Date: Fri, 5 May 2023 09:41:12 +0200 Subject: [PATCH] Change serve_while_stale type to a number (#1329) Co-authored-by: Ludovico Magnocavallo --- modules/net-glb/README.md | 4 ++-- modules/net-glb/variables-backend-service.tf | 2 +- modules/net-glb/variables.tf | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/net-glb/README.md b/modules/net-glb/README.md index 09c6843b..74237a60 100644 --- a/modules/net-glb/README.md +++ b/modules/net-glb/README.md @@ -795,8 +795,8 @@ module "glb-0" { | [name](variables.tf#L91) | Load balancer name. | string | ✓ | | | [project_id](variables.tf#L193) | Project id. | string | ✓ | | | [address](variables.tf#L17) | Optional IP address used for the forwarding rule. | string | | null | -| [backend_buckets_config](variables.tf#L23) | Backend buckets configuration. | map(object({…})) | | {} | -| [backend_service_configs](variables-backend-service.tf#L19) | Backend service level configuration. | map(object({…})) | | {} | +| [backend_buckets_config](variables.tf#L23) | Backend buckets configuration. | map(object({…})) | | {} | +| [backend_service_configs](variables-backend-service.tf#L19) | Backend service level configuration. | map(object({…})) | | {} | | [description](variables.tf#L56) | Optional description used for resources. | string | | "Terraform managed." | | [group_configs](variables.tf#L62) | Optional unmanaged groups to create. Can be referenced in backends via key or outputs. | map(object({…})) | | {} | | [health_check_configs](variables-health-check.tf#L19) | Optional auto-created health check configurations, use the output self-link to set it in the auto healing policy. Refer to examples for usage. | map(object({…})) | | {…} | diff --git a/modules/net-glb/variables-backend-service.tf b/modules/net-glb/variables-backend-service.tf index 1d70d841..51f65df5 100644 --- a/modules/net-glb/variables-backend-service.tf +++ b/modules/net-glb/variables-backend-service.tf @@ -58,7 +58,7 @@ variable "backend_service_configs" { default_ttl = optional(number) max_ttl = optional(number) negative_caching = optional(bool) - serve_while_stale = optional(bool) + serve_while_stale = optional(number) signed_url_cache_max_age_sec = optional(number) cache_key_policy = optional(object({ include_host = optional(bool) diff --git a/modules/net-glb/variables.tf b/modules/net-glb/variables.tf index 72e6c0c4..b956f2a9 100644 --- a/modules/net-glb/variables.tf +++ b/modules/net-glb/variables.tf @@ -37,7 +37,7 @@ variable "backend_buckets_config" { max_ttl = optional(number) negative_caching = optional(bool) request_coalescing = optional(bool) - serve_while_stale = optional(bool) + serve_while_stale = optional(number) signed_url_cache_max_age_sec = optional(number) cache_key_policy = optional(object({ include_http_headers = optional(list(string))