-
-
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
chore: change default aws authenticator command to aws eks get-token instead of aws-iam-authenticator #1699
Conversation
…instead of aws-iam-authenticator
LGTM |
this all looks good and makes sense to me, but unfortunately I think its still a breaking change because we have changed the default behavior. are we able to keep the current behavior (aws-iam-authenticator) as the default, but provide users the ability to use the aws eks get-token if they so choose? I think that would make this change very easy to merge in without disruption |
I guess it will be a breaking change for those who had customized their iam authenticator args, but for everyone else it's an implementation detail. If the current PR Is going into a minor release, I agree we have to honor backwards compatibility. We have to wait for next major to make it the default. At that point, we could also adjust the code so that one flag makes tf use the iam authenticator (and its associated variables). So whoever has overridden the args for iam authenticator and wants to continue using it after the major update, can do so with one toggle switch. Automated updates on major release, with customizations for iam auth args, will likely fail, but automated updates on major is looking for trouble. |
At the moment, it's already possible to use aws eks get-token by defining
But I believe that everyone who keep
In case, the user use aws cli version before 1.16.156 it will really be a breaking change. But I'm sure there are no many people who use it. And we shouldn't focus on this since it's too outdated. So I agree that it can lead to some changes during terraform module minor version upgrade. But I think it's quite enough to leave some details in the From my side, I'd prefer to introduce this before v18 since there would be too many breaking changes and not everybody are ready to install them. |
This PR has been automatically marked as stale because it has been open 30 days |
This issue has been resolved in version 18.0.0 🎉 |
I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
This PR changes default aws authenticator command to
aws eks get-token
instead ofaws-iam-authenticator
since it's already deprecated. Fixes #957.The next step is to drop
aws-iam-authenticator
support from the terraform-aws-eks module.Motivation and Context
Fixes #957.
Breaking Changes
No breaking changes here, just kubconfig file updates.
How Has This Been Tested?
EKS cluster was deployed from the master branch and updated with the suggested changes successfully.
Pre-commit hook was run.