-
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
Add --api-version
flag to aws eks get-token
to support newer versions
#6916
Comments
Hello, Blocked for the same reason on |
@YvanGuidoin I added the |
Thanks @stevehipwell for creating an issue to track this feature request. I saw that a maintainer had mentioned the possibility of this feature here in #6308. I think the first priority is reviewing the PR linked to that issue (#6476). Then the team can review this feature request for consideration. |
@tim-finnigan the API version needs to be specified as the CLI call needs to be deterministic, I think the It'd also be a much simpler implementation; #6476 has been open about 7 months. |
I think adding an API version flag is redundant and will only introduce confusion and break users who set an incorrect value. As noted in #6940, prior to Kubernetes 1.20, the API version environment variable was only provided to executables (such as the AWS CLI) if the kubeconfig specified The only case where the CLI will have to make an inference is when If a |
Since merging #6940, I would agree a That being said, I do think it is a reasonable ask to provide the |
When using Hashicorp's Kubernetes provider using the exec configuration the API version remains |
@mhemken-vts which provider and AWS CLI versions are you using? It should be working correctly now. |
Perhaps another usecase is awscli v1. I could only get it to work with kubectl downgrade below 1.24.0. Due to #4947, in some environments v2 is not installable. |
Describe the feature
I'd like to be able to request a specific
client.authentication.k8s.io
API version to be returned when callingaws eks get-token
via a--api-version
flag.For example
aws eks get-token --cluster-name my-cluster --api-version v1beta1
.We would need the same flag for the
aws eks update-kubeconfig
command too.Use Case
When using
aws eks get-token
as a client-go credential plugin the API version being used needs to be specified in the calling code. This means changing the default in the command will break all usages until both the binary and calling code have been updated. By adding the--api-version
flag the calling code will always be valid as long as the specified API version is supported by the cluster.Proposed Solution
Add a
--api-version
flag to theaws eks get-token
. Either only support API versions which are available in all EKS versions or error if the API version isn't available on the cluster.Other Information
With the release of Kubernetes v1.24.0
client.authentication.k8s.io/v1alpha1
has been removed.Acknowledgements
CLI version used
n/a
Environment details (OS name and version, etc.)
All
The text was updated successfully, but these errors were encountered: