-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Unable to use the new DNS endpoint exclusively. #2216
Comments
Thanks @TheKangaroo - Interesting, it looks like the presence of the (empty) |
Interesting @TheKangaroo - So currently the module's As |
Here is a PR to add Provider support for |
Ah, I think I understand now. Thanks for reviewing the current implementation and providing the explanation. Since we can already use DNS endpoints and disabling IP endpoints would just be an added benefit, I'm fine with waiting for hashicorp/terraform-provider-google#20369. |
TL;DR
My goal is to use only the DNS endpoint on my GKE clusters:
This is not possible at the moment because I need to set:
for the DNS endpoint to be enabled. However,
enable_private_endpoint
will create an emptymaster_authorized_networks_config {}
block in this line, and applying this will re-enable access via IPv4.I created a PR to fix this, but I'm not 100% sure if it breaks anything unrelated to DNS endpoints.
Another thing I observed while experimenting with this setting is that removing
master_authorized_networks_config {}
won't actually change my cluster to disable IPv4 access. The code seems to work for both cases: withmaster_authorized_networks_config {}
and IPv4 enabled, and omitted with IPv4 disabled. Maybe this is just a limitation in the API, where changingmaster_authorized_networks_config {}
to(empty)
does not trigger an update. 🤔Expected behavior
No response
Observed behavior
No response
Terraform Configuration
Terraform Version
Additional information
No response
The text was updated successfully, but these errors were encountered: