gorgeous-minister-41131
11/04/2022, 4:36 PM*
-
error: failed to initialize discovery client: exec plugin: invalid apiVersion "<http://client.authentication.k8s.io/v1alpha1|client.authentication.k8s.io/v1alpha1>"
I anticipate this is related to the kubectl client. For reference I'm using
kubectl version --client=true
Client Version: <http://version.Info|version.Info>{Major:"1", Minor:"23", GitVersion:"v1.23.7", GitCommit:"42c05a547468804b2053ecf60a3bd15560362fc2", GitTreeState:"clean", BuildDate:"2022-05-24T12:30:55Z", GoVersion:"go1.17.10", Compiler:"gc", Platform:"darwin/arm64"
Unable to connect to the server: getting credentials: exec plugin is configured to use API version <http://client.authentication.k8s.io/v1beta1|client.authentication.k8s.io/v1beta1>, plugin returned version <http://client.authentication.k8s.io/v1alpha1|client.authentication.k8s.io/v1alpha1>
hmm nope, so I think since is being funkyaws eks update-kubeconfig
it properly put the right supported apiVersion in now and the tool is not returning errors.⟩ aws --version
aws-cli/2.4.29 Python/3.8.8 Darwin/21.6.0 exe/x86_64 prompt/off
This is the version that works correctly now:
⟩ aws --version
aws-cli/2.8.8 Python/3.9.11 Darwin/21.6.0 exe/x86_64 prompt/off