Skip to content

Commit b7ffcce

Browse files
Remove ForceNew for enablePrivateNodes (#15747) (#11118)
[upstream:78e89b572ef77fb1b5afe26181e15825bc82377d] Signed-off-by: Modular Magician <[email protected]>
1 parent ad9fecd commit b7ffcce

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

google-beta/services/container/resource_container_cluster.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2028,7 +2028,6 @@ func ResourceContainerCluster() *schema.Resource {
20282028
"enable_private_nodes": {
20292029
Type: schema.TypeBool,
20302030
Optional: true,
2031-
ForceNew: true,
20322031
AtLeastOneOf: privateClusterConfigKeys,
20332032
DiffSuppressFunc: containerClusterPrivateClusterConfigSuppress,
20342033
Description: `Enables the private cluster feature, creating a private endpoint on the cluster. In a private cluster, nodes only have RFC 1918 private addresses and communicate with the master's private endpoint via private networking.`,

google-beta/services/container/resource_container_cluster_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8409,6 +8409,11 @@ func TestAccContainerCluster_withEnablePrivateEndpointToggle(t *testing.T) {
84098409
},
84108410
{
84118411
Config: testAccContainerCluster_withEnablePrivateEndpoint(clusterName, "false", networkName, subnetworkName),
8412+
ConfigPlanChecks: resource.ConfigPlanChecks{
8413+
PreApply: []plancheck.PlanCheck{
8414+
plancheck.ExpectResourceAction("google_container_cluster.with_enable_private_endpoint", plancheck.ResourceActionUpdate),
8415+
},
8416+
},
84128417
},
84138418
{
84148419
ResourceName: "google_container_cluster.with_enable_private_endpoint",
@@ -8419,7 +8424,6 @@ func TestAccContainerCluster_withEnablePrivateEndpointToggle(t *testing.T) {
84198424
},
84208425
})
84218426
}
8422-
84238427
func testAccContainerCluster_withEnablePrivateEndpoint(clusterName, flag, networkName, subnetworkName string) string {
84248428
return fmt.Sprintf(`
84258429
data "google_container_engine_versions" "uscentral1a" {

0 commit comments

Comments
 (0)