From 347549709e9199b8d4f93bd0cbda0c59819b73e6 Mon Sep 17 00:00:00 2001 From: The Magician Date: Tue, 28 Apr 2020 13:50:16 -0400 Subject: [PATCH] make localityLbPolicy updateable (#3435) (#2012) Signed-off-by: Modular Magician --- .changelog/3435.txt | 3 +++ google-beta/resource_compute_backend_service.go | 1 - google-beta/resource_compute_region_backend_service.go | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .changelog/3435.txt diff --git a/.changelog/3435.txt b/.changelog/3435.txt new file mode 100644 index 0000000000..155235858b --- /dev/null +++ b/.changelog/3435.txt @@ -0,0 +1,3 @@ +```release-note:bug +compute: Stopped force-recreation of `google_compute_backend_service` and `google_compute_backend_service` on updating `locality_lb_policy +``` diff --git a/google-beta/resource_compute_backend_service.go b/google-beta/resource_compute_backend_service.go index 52470681a3..eb05f77342 100644 --- a/google-beta/resource_compute_backend_service.go +++ b/google-beta/resource_compute_backend_service.go @@ -531,7 +531,6 @@ load balancing cannot be used with the other. Default value: "EXTERNAL" Possible "locality_lb_policy": { Type: schema.TypeString, Optional: true, - ForceNew: true, ValidateFunc: validation.StringInSlice([]string{"ROUND_ROBIN", "LEAST_REQUEST", "RING_HASH", "RANDOM", "ORIGINAL_DESTINATION", "MAGLEV", ""}, false), Description: `The load balancing algorithm used within the scope of the locality. The possible values are - diff --git a/google-beta/resource_compute_region_backend_service.go b/google-beta/resource_compute_region_backend_service.go index fd5efbc5de..85ed8aa741 100644 --- a/google-beta/resource_compute_region_backend_service.go +++ b/google-beta/resource_compute_region_backend_service.go @@ -415,7 +415,6 @@ balancing cannot be used with the other(s). Default value: "INTERNAL" Possible v "locality_lb_policy": { Type: schema.TypeString, Optional: true, - ForceNew: true, ValidateFunc: validation.StringInSlice([]string{"ROUND_ROBIN", "LEAST_REQUEST", "RING_HASH", "RANDOM", "ORIGINAL_DESTINATION", "MAGLEV", ""}, false), Description: `The load balancing algorithm used within the scope of the locality. The possible values are -