From 9a66ad406990d8c9cd119fb9fffcf1b58f069f65 Mon Sep 17 00:00:00 2001 From: Francis Liu Date: Fri, 1 Mar 2024 00:13:30 +0000 Subject: [PATCH] Revert "fix forceNew on master_ipv4_cidr_block and private_endpoint_subnetwork (#10089)" This reverts commit fd6d4b71cd7f8fbeb67f161391157f71966a73a0. --- .../services/container/resource_container_cluster.go.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mmv1/third_party/terraform/services/container/resource_container_cluster.go.erb b/mmv1/third_party/terraform/services/container/resource_container_cluster.go.erb index b3471ce17ca3..00a3f3aaab84 100644 --- a/mmv1/third_party/terraform/services/container/resource_container_cluster.go.erb +++ b/mmv1/third_party/terraform/services/container/resource_container_cluster.go.erb @@ -1664,6 +1664,7 @@ func ResourceContainerCluster() *schema.Resource { Type: schema.TypeString, Computed: true, Optional: true, + ForceNew: true, AtLeastOneOf: privateClusterConfigKeys, ValidateFunc: verify.OrEmpty(validation.IsCIDRNetwork(28, 28)), Description: `The IP range in CIDR notation to use for the hosted master network. This range will be used for assigning private IP addresses to the cluster master(s) and the ILB VIP. This range must not overlap with any other ranges in use within the cluster's network, and it must be a /28 subnet. See Private Cluster Limitations for more details. This field only applies to private clusters, when enable_private_nodes is true.`, @@ -1681,6 +1682,7 @@ func ResourceContainerCluster() *schema.Resource { "private_endpoint_subnetwork": { Type: schema.TypeString, Optional: true, + ForceNew: true, AtLeastOneOf: privateClusterConfigKeys, DiffSuppressFunc: tpgresource.CompareSelfLinkOrResourceName, Description: `Subnetwork in cluster's network where master's endpoint will be provisioned.`,