From 5ab50675414c45e26e03ebda741f8603fc8a14ad Mon Sep 17 00:00:00 2001 From: Ryan Oaks Date: Mon, 19 Dec 2022 08:57:14 -0500 Subject: [PATCH] Fix container_cluster and container_node_pool permadiffs when location_policy is set (#6982) --- .../terraform/resources/resource_container_node_pool.go.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/mmv1/third_party/terraform/resources/resource_container_node_pool.go.erb b/mmv1/third_party/terraform/resources/resource_container_node_pool.go.erb index 13646ef64b71..b2ab977faf75 100644 --- a/mmv1/third_party/terraform/resources/resource_container_node_pool.go.erb +++ b/mmv1/third_party/terraform/resources/resource_container_node_pool.go.erb @@ -165,6 +165,7 @@ var schemaNodePool = map[string]*schema.Schema{ "location_policy": &schema.Schema{ Type: schema.TypeString, Optional: true, + Computed: true, ValidateFunc: validation.StringInSlice([]string{"BALANCED", "ANY"}, false), 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.`, },