Skip to content

Commit 51517d8

Browse files
the-glubarroco
andauthored
Update deploy/infrastructure/dependencies/terraform-google-kubernetes/dns.tf
Co-authored-by: Michael Barroco <michael@orbitalize.com>
1 parent a5f9905 commit 51517d8

File tree

1 file changed

+1
-1
lines changed
  • deploy/infrastructure/dependencies/terraform-google-kubernetes

1 file changed

+1
-1
lines changed

deploy/infrastructure/dependencies/terraform-google-kubernetes/dns.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ resource "google_dns_record_set" "gateway" {
1616
}
1717

1818
resource "google_dns_record_set" "crdb" {
19-
count = var.google_dns_managed_zone_name == "" || var.datastore_type != "cockroachdb" ? 0 : var.node_count
19+
count = var.datastore_type == "cockroachdb" && var.google_dns_managed_zone_name != "" && ? var.node_count : 0
2020
name = "${google_compute_address.ip_crdb[count.index].description}." # description contains the expected hostname
2121
type = "A"
2222
ttl = 300

0 commit comments

Comments
 (0)