Skip to content

aws eks update-kubeconfig invalid apiVersion while using Github linux runners #6921

@kyandaks

Description

@kyandaks

Describe the bug

aws eks update-kubeconfig --name ${EKS_CLUSTER_NAME} --region ${REGION}
The above command executes successfully in the GitHub Action workflow but when I run
kubectl apply -f manifest.yml
I get the error below:
error: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1"

Expected Behavior

Usually it would start the deployment to the EKS cluster

Current Behavior

I am currently getting the error below:
error: exec plugin: invalid apiVersion "client.authentication.k8s.io/v1alpha1"

Upon checking the kubectl version --client --output=yaml, it is on version 1.24.0.

Reproduction Steps

The issue opened here suggested that one should downgrade kubectl from 1.24.0 as seen here - #6920 but this is a bit hard with GitHub hosted runners as OS updates are managed by them

Possible Solution

When I reached out to AWS support, the engineer suggested that he is going to accelerate this to the AWS EKS Service team. For reference - Case ID 10018756571

Additional Information/Context

No response

CLI version used

the version is managed by the GitHub team

Environment details (OS name and version, etc.)

Linux - Ubuntu 20.04

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions