-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Non-default node_group name breaks node group version upgrade #862
Comments
The issue you are seeing here is probably related to #843 in that the version upgrade causes a change to the cluster resource. Do you see output similar to the following?
If so, the behaviour you see is probably due to the way the MNG module has been stitched into the main module. In particular, it contains the following code snippet:
The intention of this is to force the creation of a number of resources before the node groups are being created, with the unfortunate side effect of turning @dpiddockcmp elaborated on this behaviour in #843 (comment) |
This is two issues clashing together. Changing kubernetes version shouldn't require recreation of the managed node groups, so yes, it is the explanation in #843 that's causing half the issue. There's also the problem with the optional name parameter introduced in #739. That stops successful recreation of the node group as the name is already in use and must be unique on the cluster. |
The name change introduced in #739 was meant to ensure that node groups are updated in place, rather than recreated with a new name. Although that might have been a symptom of the same underlying issue. Node groups are behaving as intended with the following change:
But that would mean that the desired resource creation order is not enforced any more. I am investigating utilising the |
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Non-default node_group name breaks node group version upgrade
I'm submitting a...
What is the current behavior?
Node group allows to define a custom name for a node group. This works as expected, however when you try to upgrade k8s version of this group with keyword
version
, TF fails with "ResourceInUseException: NodeGroup already exists with name ... and cluster name ..."If this is a bug, how to reproduce?
What's the expected behavior?
TF will perform node group version upgrade.
Are you able to fix this problem and submit a PR?
The possible workaround is to not define custom node group name. This should be stated in the documentation.
I can create a PR to add a note to the documentation until the issue is fixed.
Environment details
The text was updated successfully, but these errors were encountered: