Skip to content

Commit 2893174

Browse files
authored
fix: always set dns_config, not just for CORE_DNS (#1)
1 parent d252579 commit 2893174

File tree

1 file changed

+1
-1
lines changed
  • modules/beta-private-cluster-update-variant

1 file changed

+1
-1
lines changed

modules/beta-private-cluster-update-variant/cluster.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ resource "google_container_cluster" "primary" {
307307
}
308308

309309
dynamic "dns_config" {
310-
for_each = var.cluster_dns_provider == "CLOUD_DNS" ? [1] : []
310+
for_each = var.cluster_dns_provider != "PROVIDER_UNSPECIFIED" ? [1] : []
311311
content {
312312
cluster_dns = var.cluster_dns_provider
313313
cluster_dns_scope = var.cluster_dns_scope

0 commit comments

Comments
 (0)