Skip to content

Commit 0a4401f

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

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
@@ -36,7 +36,7 @@ resource "google_dns_record_set" "yugabyte_masters" {
3636
}
3737

3838
resource "google_dns_record_set" "yugabyte_tserver" {
39-
count = var.google_dns_managed_zone_name == "" || var.datastore_type != "yugabyte" ? 0 : var.node_count
39+
count = var.datastore_type == "yugabyte" && var.google_dns_managed_zone_name != "" ? var.node_count : 0
4040
name = "${google_compute_address.ip_yugabyte_tservers[count.index].description}." # description contains the expected hostname
4141
type = "A"
4242
ttl = 300

0 commit comments

Comments
 (0)