-
-
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
12.0.0 broke userdata_template_file in worker_groups #882
Comments
* Remove template_file for generating kubeconfig Push logic from terraform down to the template. Makes the formatting slightly easier to follow * Remove template_file for generating userdata Updates to the eks_cluster now do not trigger recreation of launch configurations * Remove template_file for LT userdata * Remove template dependency
Copying parts of the contents of the issue I had almost written up: What is the current behavior?
where the What's the expected behavior?The user data is passed in and handled as a template already Are you able to fix this problem and submit a PR? Link here if you have already.In theory this is fixable in one of 4 ways:
It's unclear which direction to go, although 1 or a combination of 2 and 4 would probably be sufficient. Any other relevant infoGiven that 12.0.0 also fixes the incompatibility with Terraform AWS Provider 2.61.0 in #868, this is pretty urgent to fix since now we can upgrade neither the provider nor this module in our production cluster until this is fixed. |
I don't see a nice solution to this. Terraform doesn't have a straight up Either we revert #854 and go back to the obnoxious behaviour of the |
Oups. I don't see a nice solution either.
FWIW, after some tests, I figured out that for Here is my test: In
|
That's really not a safe path. People seem to struggle to read instructions. It will cause updates each time the plan is run on a clean environment, like a CI system. So for those users wanting to pass in their own template the situation will be even worse. Updating the comment in locals.tf to say that Unfortunately I think we'll have to revert my changes. #883 Maybe I'll file a wishlist item against Terraform. See if they can add a generic |
#2 by itself won't work for us; we dynamically generate the contents, and can't point to a single file on disk. (We reuse this userdata generating mechanism for use cases outside of EKS.) If we add a #4, by creating a new variable called |
@dpiddockcmp agree that it's an ugly hack.
To me this is the way to go. I just opened a PR hashicorp/terraform#24978 to add the I'm not happy with reverting #854. It adds consistency during plan/apply phases and avoid lot of |
It looks like the |
The revert of this change has now been released in v12.1.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?
worker_groups key
userdata_template_file
used to contain the content of a template file. #854 accidentally changed this to being a filenameAs reported here: b183b97#r39182495
If this is a bug, how to reproduce? Please include a code sample if relevant.
Try to set worker_groups["userdata_template_file"] to the contents of a userdata file. It'll explode trying to find a file of that name
What's the expected behavior?
Input passed as raw data to be used as the userdata template.
Are you able to fix this problem and submit a PR? Link here if you have already.
Later
Environment details
Any other relevant info
My bad 😞
The text was updated successfully, but these errors were encountered: