-
Notifications
You must be signed in to change notification settings - Fork 423
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
[pkg/token]: Update credential API version #386
[pkg/token]: Update credential API version #386
Conversation
Kubernetes has deprecated v1alpha1, v1beta1 has been available since Kubernetes v1.11 (kubernetes/kubernetes#64482). At the time of this commit, community-supported versions are v1.19, v1.20, v1.21. This change will break for Kubernetes clients using client-go or kubectl v1.10 and earlier, which reached end-of-life community support on Feb 13, 2019. EKS ended support for 1.10 in September of 2019. Kubernetes 1.22 will introduce v1 of this API, but v1beta1 will likely be supported for a period of 2 more years. Signed-off-by: Micah Hausler <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for taking care of this @micahhausler
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: micahhausler, nckturner, PatrickXYS The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Might be important to make a note about changing Unable to connect to the server: getting credentials: exec plugin is configured to use API version client.authentication.k8s.io/v1alpha1, plugin returned version client.authentication.k8s.io/v1beta1 |
|
@carl-reverb That's helpful for people that land here from google. Perhaps a quick NB on the README or release notes? |
The authenticator began requiring the use of the v1beta Kubernetes API in kubernetes-sigs/aws-iam-authenticator#386, so we change our kubeconfigs to match.
@carl-reverb @timfallmk I am still getting this kubectl error after running "sed -i .bak -e 's/v1alpha1/v1beta1/' ~/.kube/config" Unable to connect to the server: getting credentials: exec plugin is configured to use API version client.authentication.k8s.io/v1alpha1, plugin returned version client.authentication.k8s.io/v1beta1 I am using Warning: kubernetes-cli 1.23.5 already installed and aws-iam-authenticator 0.5.5 |
@christinax32 The only thing I can think of would be a mistype. I solved this problem by removing |
Kubernetes has deprecated v1alpha1, v1beta1 has been available since Kubernetes
v1.11 (kubernetes/kubernetes#64482). At the time of this commit,
community-supported versions are v1.19, v1.20, v1.21. This change will break
for Kubernetes clients using client-go or kubectl v1.10 and earlier, which
reached end-of-life community support on Feb 13, 2019. EKS ended support
for 1.10 in September of 2019.
Kubernetes 1.22 will introduce v1 of this API, but v1beta1 will likely be
supported for a period of 2 more years.
Signed-off-by: Micah Hausler [email protected]