Skip to content

Commit 9e62bc4

Browse files
Fix container_cluster and container_node_pool permadiffs when location_policy is set (#6982) (#13283)
Signed-off-by: Modular Magician <[email protected]> Signed-off-by: Modular Magician <[email protected]>
1 parent 6b99075 commit 9e62bc4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.changelog/6982.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google/resource_container_node_pool.go

+1
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ var schemaNodePool = map[string]*schema.Schema{
160160
"location_policy": {
161161
Type: schema.TypeString,
162162
Optional: true,
163+
Computed: true,
163164
ValidateFunc: validation.StringInSlice([]string{"BALANCED", "ANY"}, false),
164165
Description: `Location policy specifies the algorithm used when scaling-up the node pool. "BALANCED" - Is a best effort policy that aims to balance the sizes of available zones. "ANY" - Instructs the cluster autoscaler to prioritize utilization of unused reservations, and reduces preemption risk for Spot VMs.`,
165166
},

0 commit comments

Comments
 (0)