Skip to content

Commit 3502fdc

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

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
@@ -26,7 +26,7 @@ resource "google_dns_record_set" "crdb" {
2626
}
2727

2828
resource "google_dns_record_set" "yugabyte_masters" {
29-
count = var.google_dns_managed_zone_name == "" || var.datastore_type != "yugabyte" ? 0 : var.node_count
29+
count = var.datastore_type == "yugabyte" && var.google_dns_managed_zone_name != "" ? var.node_count : 0
3030
name = "${google_compute_address.ip_yugabyte_masters[count.index].description}." # description contains the expected hostname
3131
type = "A"
3232
ttl = 300

0 commit comments

Comments
 (0)