-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Document that GKE master_auth key is an array #617
Conversation
This resolves hashicorp/terraform#16417 and is a follow up to hashicorp/terraform#14073
Hey @arekkas, thanks for the PR! I took a look to see how we handle this in other resources, and found the docs for compute instance: https://www.terraform.io/docs/providers/google/r/compute_instance.html#attributes-reference, namely:
If the docs for container cluster had been in a format like that, do you think that would have been clearer? I think the docs you've proposed are fine, but I worry they're almost too detailed. Let me know what you think! |
I think it depends on whether or not master_auth is populated with more than one array entry. I'm not very savvy on GKE internals/API payloads so I don't really know if and when that array has more than one entry. Depending on that I would either try to keep it a bit verbose (maybe even explain what those other array elements might be), or redact it a bit to make it more streamlined. |
One thing though, in my experience
does almost never apply to docs! :) Someone is always confused by instructions, having examples and a bit of explanation usually prevents that, at least in my experience. |
This line: https://github.com/terraform-providers/terraform-provider-google/blob/master/google/resource_container_cluster.go#L189 guarantees there will never be more than one entry. And sure, too detailed might not have been the best phrasing. Too generalized? I'm fine with examples, but I personally think that: |
Ok, then it makes sense to shorten this down! |
I moved the example to the top and simply added a |
Looks good, thanks @arekkas! |
* Document that GKE master_auth key is an array This resolves hashicorp/terraform#16417 and is a follow up to hashicorp/terraform#14073 * Update container_cluster.html.markdown * Update container_cluster.html.markdown * Update container_cluster.html.markdown
<!-- This change is generated by MagicModules. --> Original Author: @rileykarson
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
This resolves hashicorp/terraform#16417 and is a follow up to hashicorp/terraform#14073