Skip to content

Commit 48c73e3

Browse files
authored
fix(google_gke): making k8s_api_proxy_dns_name conditional (#228)
* making k8s_api_proxy_dns_name conditional * chore(google_gke): allowing for empty k8s_api_proxy_dns_name
1 parent 4e6e29d commit 48c73e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google_gke/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ output "service_account" {
3636

3737
output "k8s_api_proxy_dns_name" {
3838
description = "K8s api proxy dns record"
39-
value = google_dns_record_set.k8s_api_proxy_dns_name[0].name
39+
value = var.enable_k8s_api_proxy_ip ? google_dns_record_set.k8s_api_proxy_dns_name[0].name : "N/A"
4040
}

0 commit comments

Comments
 (0)