Error: exec plugin: invalid apiVersion ""

Hi Guys, recently I’m facing this issue in the azure DevOps release pipeline. Not sure how to fix this.

There is a current issue opened on the aws cli.

Temporary solutions and examples are available on the github issue:
aws eks update-kubeconfig invalid apiVersion

1 Like

Using kubectl 1.21.9 fixed it for me, with asdf:

asdf plugin-add kubectl
asdf install kubectl 1.21.9

And I would recommend having a .tools-versions file with:

kubectl 1.21.9
1 Like