@@ -1585,7 +1585,7 @@ func TestAccContainerCluster_withNodeConfigLinuxNodeConfig(t *testing.T) {
1585
1585
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t),
1586
1586
CheckDestroy: testAccCheckContainerClusterDestroyProducer(t),
1587
1587
Steps: []resource.TestStep{
1588
- // First test with empty `node_config.linux_node_config`
1588
+ // First test with empty `node_config.linux_node_config` (should result in "CGROUP_MODE_UNSPECIFIED")
1589
1589
{
1590
1590
Config: testAccContainerCluster_withNodeConfigLinuxNodeConfig(clusterName, networkName, subnetworkName, ""),
1591
1591
ConfigPlanChecks: resource.ConfigPlanChecks{
@@ -1621,13 +1621,13 @@ func TestAccContainerCluster_withNodeConfigLinuxNodeConfig(t *testing.T) {
1621
1621
ImportStateVerify: true,
1622
1622
ImportStateVerifyIgnore: []string{"deletion_protection"},
1623
1623
},
1624
- // Lastly, update the setting in-place.
1624
+ // Lastly, update the setting in-place. V1 since UNSPECIFIED is default
1625
1625
{
1626
- Config: testAccContainerCluster_withNodeConfigLinuxNodeConfig(clusterName, networkName, subnetworkName, "CGROUP_MODE_UNSPECIFIED "),
1626
+ Config: testAccContainerCluster_withNodeConfigLinuxNodeConfig(clusterName, networkName, subnetworkName, "CGROUP_MODE_V1 "),
1627
1627
Check: resource.ComposeTestCheckFunc(
1628
1628
resource.TestCheckResourceAttr(
1629
1629
"google_container_cluster.with_linux_node_config",
1630
- "node_config.0.linux_node_config.0.cgroup_mode", "CGROUP_MODE_UNSPECIFIED ",
1630
+ "node_config.0.linux_node_config.0.cgroup_mode", "CGROUP_MODE_V1 ",
1631
1631
),
1632
1632
),
1633
1633
ConfigPlanChecks: resource.ConfigPlanChecks{
0 commit comments