@@ -1568,40 +1568,6 @@ func TestAccContainerCluster_withNodeConfigGcfsConfig(t *testing.T) {
15681568 })
15691569}
15701570
1571- // Note: Updates for these are currently known to be broken (b/361634104), and
1572- // so are not tested here.
1573- // They can probably be made similar to, or consolidated with,
1574- // TestAccContainerCluster_withInsecureKubeletReadonlyPortEnabledInNodeConfigUpdates
1575- // after that's resolved.
1576- func TestAccContainerCluster_withNodeConfigKubeletConfigSettings (t * testing.T ) {
1577- t .Parallel ()
1578- clusterName := fmt .Sprintf ("tf-test-cluster-%s" , acctest .RandString (t , 10 ))
1579- networkName := acctest .BootstrapSharedTestNetwork (t , "gke-cluster" )
1580- subnetworkName := acctest .BootstrapSubnet (t , "gke-cluster" , networkName )
1581-
1582- acctest .VcrTest (t , resource.TestCase {
1583- PreCheck : func () { acctest .AccTestPreCheck (t ) },
1584- ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories (t ),
1585- CheckDestroy : testAccCheckContainerClusterDestroyProducer (t ),
1586- Steps : []resource.TestStep {
1587- {
1588- Config : testAccContainerCluster_withNodeConfigKubeletConfigSettings (clusterName , networkName , subnetworkName ),
1589- ConfigPlanChecks : resource.ConfigPlanChecks {
1590- PreApply : []plancheck.PlanCheck {
1591- acctest .ExpectNoDelete (),
1592- },
1593- },
1594- },
1595- {
1596- ResourceName : "google_container_cluster.with_node_config_kubelet_config_settings" ,
1597- ImportState : true ,
1598- ImportStateVerify : true ,
1599- ImportStateVerifyIgnore : []string {"deletion_protection" },
1600- },
1601- },
1602- })
1603- }
1604-
16051571// This is for node_config.kubelet_config, which affects the default node-pool
16061572// (default-pool) when created via the google_container_cluster resource
16071573func TestAccContainerCluster_withInsecureKubeletReadonlyPortEnabledInNodeConfigUpdates (t * testing.T ) {
@@ -6761,27 +6727,6 @@ resource "google_container_cluster" "with_node_config_gcfs_config" {
67616727` , clusterName , enabled , networkName , subnetworkName )
67626728}
67636729
6764- func testAccContainerCluster_withNodeConfigKubeletConfigSettings (clusterName , networkName , subnetworkName string ) string {
6765- return fmt .Sprintf (`
6766- resource "google_container_cluster" "with_node_config_kubelet_config_settings" {
6767- name = "%s"
6768- location = "us-central1-f"
6769- initial_node_count = 1
6770-
6771- node_config {
6772- kubelet_config {
6773- cpu_manager_policy = "static"
6774- cpu_cfs_quota = true
6775- cpu_cfs_quota_period = "100ms"
6776- pod_pids_limit = 2048
6777- }
6778- }
6779- deletion_protection = false
6780- network = "%s"
6781- subnetwork = "%s"
6782- }
6783- ` , clusterName , networkName , subnetworkName )
6784- }
67856730
67866731func testAccContainerCluster_withInsecureKubeletReadonlyPortEnabledInNodeConfig (clusterName , networkName , subnetworkName , insecureKubeletReadonlyPortEnabled string ) string {
67876732 return fmt .Sprintf (`
0 commit comments