Skip to content

Commit

Permalink
fix forceNew on master_ipv4_cidr_block and private_endpoint_subnetwor…
Browse files Browse the repository at this point in the history
…k (#10089) (#7034)

[upstream:fd6d4b71cd7f8fbeb67f161391157f71966a73a0]

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored Feb 29, 2024
1 parent ba69d71 commit f687e6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/10089.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
container: changed `master_ipv4_cidr_block`/`private_endpoint_subnetwork` to `ForceNew: false` on `Cluster`
```
2 changes: 0 additions & 2 deletions google-beta/services/container/resource_container_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,6 @@ 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.`,
Expand All @@ -1655,7 +1654,6 @@ 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.`,
Expand Down

0 comments on commit f687e6c

Please sign in to comment.