Skip to content

Commit 3475497

Browse files
modular-magicianemilymye
authored andcommitted
make localityLbPolicy updateable (#3435) (#2012)
Signed-off-by: Modular Magician <[email protected]>
1 parent 3917df2 commit 3475497

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.changelog/3435.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
compute: Stopped force-recreation of `google_compute_backend_service` and `google_compute_backend_service` on updating `locality_lb_policy
3+
```

google-beta/resource_compute_backend_service.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,6 @@ load balancing cannot be used with the other. Default value: "EXTERNAL" Possible
531531
"locality_lb_policy": {
532532
Type: schema.TypeString,
533533
Optional: true,
534-
ForceNew: true,
535534
ValidateFunc: validation.StringInSlice([]string{"ROUND_ROBIN", "LEAST_REQUEST", "RING_HASH", "RANDOM", "ORIGINAL_DESTINATION", "MAGLEV", ""}, false),
536535
Description: `The load balancing algorithm used within the scope of the locality.
537536
The possible values are -

google-beta/resource_compute_region_backend_service.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,6 @@ balancing cannot be used with the other(s). Default value: "INTERNAL" Possible v
415415
"locality_lb_policy": {
416416
Type: schema.TypeString,
417417
Optional: true,
418-
ForceNew: true,
419418
ValidateFunc: validation.StringInSlice([]string{"ROUND_ROBIN", "LEAST_REQUEST", "RING_HASH", "RANDOM", "ORIGINAL_DESTINATION", "MAGLEV", ""}, false),
420419
Description: `The load balancing algorithm used within the scope of the locality.
421420
The possible values are -

0 commit comments

Comments
 (0)