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

EKS: Update API version of ExecCredential to v1 #6912

Closed
wants to merge 1 commit into from

Conversation

jstastny
Copy link

@jstastny jstastny commented May 3, 2022

This is because the kubeconfig generated by kubectl 1.24 (released 3rd May) no longer supports client.authentication.k8s.io/v1alpha1 version and fails with:

error: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1"

This commit is more or less a naive search&replace. Some tests may be failing so more changes may be needed.

Description of changes:

Change the apiVersion used in kube config's exec yaml from client.authentication.k8s.io/v1alpha1 to client.authentication.k8s.io/v1.

Also add the newly required interactiveMode to the kube config.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

This is because the kubeconfig generated by `kubectl` 1.24 (released 3rd May) no longer supports `client.authentication.k8s.io/v1alpha1` version and fails with:
```
error: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1"
```

This commit is more or less a naive search&replace. Some tests may be failing so more changes may be needed.
@jstastny
Copy link
Author

jstastny commented May 6, 2022

#6476 seems to be more sophisticated implementation of the same thing.

@kdaily
Copy link
Member

kdaily commented May 6, 2022

Thanks @jstastny! I think as you note that #6476 fixes this. It was just merged and should be released soon. Closing this out!

@kdaily kdaily closed this May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants