Skip to content

Commit

Permalink
fix: modified private and public endpoint outputs (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
praizz authored Jan 20, 2022
1 parent 572c6dc commit 18ff033
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 18ff033

Please sign in to comment.