-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
hardcoded dash in name-prefix forces replacement of node groups when upgrading to 18x #2153
Comments
This change was intentional and made during a breaking change. Users can remove the current node group from Terraform control (i.e. - |
@bryantbiggs please elaborate. This does not work that simply, due to iam roles changing and security groups being shuffled around and replaced, as soon as I due that, I end up with nodes in the old (self-managed) nodegroup that are in the NotReady state and all pods on them are unreachable. edit: ok I try things mentioned in #1744 first, did just now discover that discussion |
+1 |
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. |
Description
Due to https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/modules/eks-managed-node-group/main.tf#L49 and https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/modules/self-managed-node-group/main.tf#L55, when upgrading from v1.17.x to v1.18.x, if the name of the nodegroup did not have that trailing dash before, the nodegroup will always be forcefully replaced. We should be able to circumvent this by specifing name_prefix ourselves, it would be enough to just remove that hard-coded dash altogether.
Versions
Terraform v1.1.7
on linux_amd64
Reproduction Code [Required]
Steps to reproduce the behavior:
Expected behavior
There should be away to avoid nodegroup replacement
Actual behavior
The text was updated successfully, but these errors were encountered: