@@ -13358,6 +13358,18 @@ func TestAccContainerCluster_storagePoolsWithNodeConfig(t *testing.T) {
13358
13358
ImportStateVerify: true,
13359
13359
ImportStateVerifyIgnore: []string{"deletion_protection"},
13360
13360
},
13361
+ {
13362
+ Config: testAccContainerCluster_storagePoolsWithNodeConfigUpdate(cluster, location, networkName, subnetworkName),
13363
+ Check: resource.ComposeTestCheckFunc(
13364
+ resource.TestCheckResourceAttr("google_container_cluster.storage_pools_with_node_config", "node_config.0.storage_pools.#", "0"),
13365
+ ),
13366
+ },
13367
+ {
13368
+ ResourceName: "google_container_cluster.storage_pools_with_node_config",
13369
+ ImportState: true,
13370
+ ImportStateVerify: true,
13371
+ ImportStateVerifyIgnore: []string{"deletion_protection"},
13372
+ },
13361
13373
},
13362
13374
})
13363
13375
}
@@ -13384,6 +13396,27 @@ resource "google_container_cluster" "storage_pools_with_node_config" {
13384
13396
`, cluster, location, storagePoolResourceName, networkName, subnetworkName)
13385
13397
}
13386
13398
13399
+ func testAccContainerCluster_storagePoolsWithNodeConfigUpdate(cluster, location, networkName, subnetworkName string) string {
13400
+ return fmt.Sprintf(`
13401
+ resource "google_container_cluster" "storage_pools_with_node_config" {
13402
+ name = "%s"
13403
+ location = "%s"
13404
+
13405
+ initial_node_count = 1
13406
+ node_config {
13407
+ machine_type = "c3-standard-4"
13408
+ image_type = "COS_CONTAINERD"
13409
+ disk_type = "hyperdisk-balanced"
13410
+ }
13411
+
13412
+ network = "%s"
13413
+ subnetwork = "%s"
13414
+
13415
+ deletion_protection = false
13416
+ }
13417
+ `, cluster, location, networkName, subnetworkName)
13418
+ }
13419
+
13387
13420
func TestAccContainerCluster_withAutopilotGcpFilestoreCsiDriver(t *testing.T) {
13388
13421
t.Parallel()
13389
13422
0 commit comments