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

Add new property to explicitly return GKE private_endpoint #841

Merged

Conversation

fstr
Copy link
Contributor

@fstr fstr commented Mar 5, 2021

This fixes #828 on the auth module. A new flag use_private_endpoint is introduced. If this flag is set to true, the private_endpoint property of the GKE cluster is looked up.

If use_private_endpoint is set to false (default), the data.google_container_cluster.gke_cluster.private_cluster_config[0].public_endpoint will be used if available with a fallback to the default GKE endpoint property.

@fstr fstr requested review from bharathkkb, Jberlinsky and a team as code owners March 5, 2021 15:14
modules/auth/main.tf Outdated Show resolved Hide resolved
@comment-bot-dev
Copy link

comment-bot-dev commented Mar 5, 2021

Thanks for the PR! 🚀
✅ Lint checks have passed.

@bharathkkb bharathkkb merged commit 1b99c07 into terraform-google-modules:master Mar 9, 2021
@fstr fstr deleted the auth/add-private-ip-support branch March 9, 2021 07:58
CPL-markus pushed a commit to WALTER-GROUP/terraform-google-kubernetes-engine that referenced this pull request Jul 15, 2024
…auth module (terraform-google-modules#841)

* Add new property to explicitly return GKE private_endpoint

* Return private_endpoint if explicitly requested, otherwise return default endpoint

Co-authored-by: Bharath KKB <bharathkrishnakb@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

modules/private-cluster endpoint incorrect
4 participants