Skip to content
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

Update kubeconfig writing for EKS and k8s >= 1.24 #5679

Merged
merged 1 commit into from
May 19, 2022

Conversation

thbkrkr
Copy link
Contributor

@thbkrkr thbkrkr commented May 19, 2022

Starting k8s 1.24, the api client.authentication.k8s.io/v1alpha1 has been removed but eksctl still uses it when writing the kubeconfig file.
This commit changes how to write the kubeconfig file by using aws eks update-kubeconfig that uses the new client.authentication.k8s.io/v1beta1 (aws/aws-cli#6920), instead of eksctl utils write-kubeconfig.

Resolves #5668.

@thbkrkr thbkrkr added :ci Things related to Continuous Integration, automation and releases >test Related to unit/integration/e2e tests labels May 19, 2022
@thbkrkr thbkrkr requested a review from barkbay May 19, 2022 10:51
Copy link
Contributor

@barkbay barkbay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thbkrkr thbkrkr merged commit 398ffbc into elastic:main May 19, 2022
@thbkrkr thbkrkr deleted the update-eks-get-creds branch May 24, 2022 12:11
@thbkrkr thbkrkr added the v2.3.0 label May 24, 2022
fantapsody pushed a commit to fantapsody/cloud-on-k8s that referenced this pull request Feb 7, 2023
…1.24 (elastic#5679)

Starting k8s 1.24, the api `client.authentication.k8s.io/v1alpha1` has been removed but eksctl still uses it when writing the kubeconfig file.
This commit changes how to write the kubeconfig file by using `aws eks update-kubeconfig` that uses the new client.authentication.k8s.io/v1beta1 (aws/aws-cli#6920), instead of `eksctl utils write-kubeconfig`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:ci Things related to Continuous Integration, automation and releases >test Related to unit/integration/e2e tests v2.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[E2E] EKS jobs are failing
2 participants