Skip to content

aws eks update-kubeconfig invalid apiVersion #6920

@code-is-art

Description

@code-is-art

Describe the bug

Update kubectl from v1.23.6 to 1.24.0 and run commands

aws eks update-kubeconfig --name ${EKS_CLUSTER_NAME} --region ${REGION}
kubectl version

I get the following error and exit status 1

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

Kubectl must need an updated apiVersion in kubeconfig file. Not sure if this is on aws side or kubectl side.
kubernetes/kubectl#1210

Expected Behavior

No error message when using kubectl and aws eks update-kubeconfig

Current Behavior

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

Reproduction Steps

Update kubectl from v1.23.6 to 1.24.0 and run commands

aws eks update-kubeconfig --name ${EKS_CLUSTER_NAME} --region ${REGION}
kubectl version

Possible Solution

No response

Additional Information/Context

No response

CLI version used

whatever is running in aws/codebuild/standard:5.0

Environment details (OS name and version, etc.)

aws/codebuild/standard:5.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions