-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Prefix etcd cluster names with letters #10361
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hakman The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
df857cc
to
09b1389
Compare
this looks good to me though it doesn't fix existing clusters being upgraded to Terraform 0.12. |
Not sure if we can have more than a release note for those running Terraform 0.12. At least with this new clusters could be created. |
what would the release note say? It seems like we should either use a different terraform resource name if the original name starts with a number and have the release notes instruct users to Users will experience this issue when upgrading existing clusters, so we should be prepared to handle that. |
I think this is a start. If someone bumps into this issue with an existing cluster, will be a pain, but I don't see any easy solution. It's not just about renaming resources. If the community will find some way to fix things manually and documents the steps, I would be happy to look at that. |
i think the easiest solution is to have kops change the terraform resource name that it generates when it would otherwise start with a number in this situation. Then we know that anyone that had their resource name change would have otherwise ran into this issue and they'll need to |
That would require more work and testing. |
I find it hard to reason about whether this is safe. Can we first create a test case that hits the numbers problem (in the create_cluster case), and then rebase this on that so we can see the change? |
09b1389
to
82eee75
Compare
/lgtm we will merge this plus #10424 and an env var check as discussed in the referenced GH issue |
/retest |
Manual cherry pick of #10361: Prefix etcd cluster names with letters
Refs: #9982
/cc @rifelpet