@@ -72,6 +72,7 @@ func TestAccContainerCluster_withAddons(t *testing.T) {
72
72
"google_container_cluster.primary" ),
73
73
resource .TestCheckResourceAttr ("google_container_cluster.primary" , "addons_config.0.http_load_balancing.0.disabled" , "true" ),
74
74
resource .TestCheckResourceAttr ("google_container_cluster.primary" , "addons_config.0.kubernetes_dashboard.0.disabled" , "true" ),
75
+ resource .TestCheckResourceAttr ("google_container_cluster.primary" , "addons_config.0.network_policy.0.disabled" , "false" ),
75
76
),
76
77
},
77
78
{
@@ -82,6 +83,7 @@ func TestAccContainerCluster_withAddons(t *testing.T) {
82
83
resource .TestCheckResourceAttr ("google_container_cluster.primary" , "addons_config.0.horizontal_pod_autoscaling.0.disabled" , "true" ),
83
84
resource .TestCheckResourceAttr ("google_container_cluster.primary" , "addons_config.0.http_load_balancing.0.disabled" , "false" ),
84
85
resource .TestCheckResourceAttr ("google_container_cluster.primary" , "addons_config.0.kubernetes_dashboard.0.disabled" , "true" ),
86
+ resource .TestCheckResourceAttr ("google_container_cluster.primary" , "addons_config.0.kubernetes_dashboard.0.disabled" , "true" ),
85
87
),
86
88
},
87
89
},
@@ -920,7 +922,7 @@ resource "google_container_cluster" "primary" {
920
922
addons_config {
921
923
http_load_balancing { disabled = true }
922
924
kubernetes_dashboard { disabled = true }
923
- network_policy { disabled = true }
925
+ network_policy { disabled = false }
924
926
}
925
927
}` , clusterName )
926
928
}
@@ -936,7 +938,7 @@ resource "google_container_cluster" "primary" {
936
938
http_load_balancing { disabled = false }
937
939
kubernetes_dashboard { disabled = true }
938
940
horizontal_pod_autoscaling { disabled = true }
939
- network_policy { disabled = false }
941
+ network_policy { disabled = true }
940
942
}
941
943
}` , clusterName )
942
944
}
0 commit comments