Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: modified private and public endpoint outputs #2

Merged
merged 9 commits into from
Jan 20, 2022
4 changes: 2 additions & 2 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ output "endpoint" {
output "private_endpoint" {
description = "The Private IP address of the cluster master."
sensitive = true
value = google_container_cluster.cluster.private_cluster_config.0.private_endpoint
value = var.disable_public_endpoint || var.enable_private_nodes ? google_container_cluster.cluster.private_cluster_config.0.private_endpoint : null
}

output "public_endpoint" {
description = "The Public IP address of the cluster master."
sensitive = true
value = google_container_cluster.cluster.private_cluster_config.0.public_endpoint
value = var.disable_public_endpoint || var.enable_private_nodes ? google_container_cluster.cluster.private_cluster_config.0.public_endpoint : google_container_cluster.cluster.endpoint
}

# The following outputs allow authentication and connectivity to the GKE Cluster.
Expand Down