diff --git a/mmv1/third_party/terraform/services/container/resource_container_cluster.go.tmpl b/mmv1/third_party/terraform/services/container/resource_container_cluster.go.tmpl index 6a73946497e9..eebf01f54c98 100644 --- a/mmv1/third_party/terraform/services/container/resource_container_cluster.go.tmpl +++ b/mmv1/third_party/terraform/services/container/resource_container_cluster.go.tmpl @@ -104,12 +104,6 @@ var ( "private_cluster_config.0.master_global_access_config", } - forceNewClusterNodeConfigFields = []string{ - "labels", - "workload_metadata_config", - "resource_manager_tags", - } - suppressDiffForAutopilot = schema.SchemaDiffSuppressFunc(func(k, oldValue, newValue string, d *schema.ResourceData) bool { if v, _ := d.Get("enable_autopilot").(bool); v { return true @@ -126,19 +120,6 @@ var ( }) ) -// This uses the node pool nodeConfig schema but sets -// node-pool-only updatable fields to ForceNew -func clusterSchemaNodeConfig() *schema.Schema { - nodeConfigSch := schemaNodeConfig() - schemaMap := nodeConfigSch.Elem.(*schema.Resource).Schema - for _, k := range forceNewClusterNodeConfigFields { - if sch, ok := schemaMap[k]; ok { - tpgresource.ChangeFieldSchemaToForceNew(sch) - } - } - return nodeConfigSch -} - // Defines default nodel pool settings for the entire cluster. These settings are // overridden if specified on the specific NodePool object. func clusterSchemaNodePoolDefaults() *schema.Schema { @@ -1477,7 +1458,7 @@ func ResourceContainerCluster() *schema.Resource { }, }, - "node_config": clusterSchemaNodeConfig(), + "node_config": schemaNodeConfig(), "node_pool": { Type: schema.TypeList, diff --git a/mmv1/third_party/terraform/services/container/resource_container_cluster_migratev1.go.tmpl b/mmv1/third_party/terraform/services/container/resource_container_cluster_migratev1.go.tmpl index 4a4731962b8b..6763e5be156e 100644 --- a/mmv1/third_party/terraform/services/container/resource_container_cluster_migratev1.go.tmpl +++ b/mmv1/third_party/terraform/services/container/resource_container_cluster_migratev1.go.tmpl @@ -1198,7 +1198,7 @@ func resourceContainerClusterResourceV1() *schema.Resource { }, }, - "node_config": clusterSchemaNodeConfig(), + "node_config": schemaNodeConfig(), "node_pool": { Type: schema.TypeList,