Skip to content

Commit c28bd3f

Browse files
authored
Revert "fix forceNew on master_ipv4_cidr_block and private_endpoint_subnetwork (#10089)" (#10096)
1 parent 072343e commit c28bd3f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mmv1/third_party/terraform/services/container/resource_container_cluster.go.erb

+2
Original file line numberDiff line numberDiff line change
@@ -1664,6 +1664,7 @@ func ResourceContainerCluster() *schema.Resource {
16641664
Type: schema.TypeString,
16651665
Computed: true,
16661666
Optional: true,
1667+
ForceNew: true,
16671668
AtLeastOneOf: privateClusterConfigKeys,
16681669
ValidateFunc: verify.OrEmpty(validation.IsCIDRNetwork(28, 28)),
16691670
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 {
16811682
"private_endpoint_subnetwork": {
16821683
Type: schema.TypeString,
16831684
Optional: true,
1685+
ForceNew: true,
16841686
AtLeastOneOf: privateClusterConfigKeys,
16851687
DiffSuppressFunc: tpgresource.CompareSelfLinkOrResourceName,
16861688
Description: `Subnetwork in cluster's network where master's endpoint will be provisioned.`,

0 commit comments

Comments
 (0)