-
-
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
Feat/bug: workers ASGs that are more resilient to unnecessary change #1105
Comments
This issue of ”resource needs to be recreated” seems to be a deeper one. It is also a pain with managed node groups. You can’t modify a launch template without recreating the whole node group, which is just plain wrong: #1109 |
I put in a PR that internally creates a map based on the list of workers from the caller (so no API change to module) and uses |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
unstale? |
I would love to see this issue fixed. Is this module still being maintained? (there hasn't been a commit since January) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I think #1309 had a very reasonable solution. It wasn't merged because of upcoming refactoring; but it would be hugely helpful even as an interim solution. |
I put this issue into a backlog for the v18.0.0 milestone because this is a breaking change. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity since being marked as stale. |
If this is part of the milestone then shouldn't this be kept open? |
@james-callahan - Thanks for the report. You are right, I have opened #1656 to track it. |
This issue has been resolved in version 18.0.0 🎉 |
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. |
I have issues
I'm submitting a...
What is the current behavior?
If I mutate the array I pass in for
worker_groups
at all, all of my ASGs are regenerated and it's kinda explosiveIf this is a bug, how to reproduce? Please include a code sample if relevant.
Pass in a list for
worker_groups
, append an entry on a subsequent run, note the resources to destroy, try not to cry, cry anyway.What's the expected behavior?
By preference, only ASGs that didn't exist before would be added, or if existing ASGs were changed would they be replaced.
Are you able to fix this problem and submit a PR? Link here if you have already.
Not really but I had an idea that instead of a count loop (https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/workers.tf#L4 ) we could use a for_each loop, maybe. A map would be better for this than a list, so perhaps a different ASG fed by a new module param (
worker_groups_map
?) would be needed for backwards compatibility. Or maybe you could generate a map from a list I'm no scientist.Environment details
12.2.0
but the code looks the same in13.2.1
0.13.4
Any other relevant info
Thanks for this module, I've been using it I think actual years plural now, and it's always super useful and composable (in fact, for this ticket I could easily create my own
workers.tf
and have it work with your existing module easy peasy)The text was updated successfully, but these errors were encountered: