ahmetb / kubectx

Faster way to switch between clusters and namespaces in kubectl
https://kubectx.dev
Apache License 2.0
17.66k stars 1.26k forks source link

Doesn't work with the latest versions of AWS and Kubectl #358

Closed Andrea-Gallicchio closed 2 years ago

Andrea-Gallicchio commented 2 years ago

Hi,

I've updated the AWS and Kubectl version and kubectx doesn't work anymore.

[12:24:37] andrea:~ $ aws --version
aws-cli/2.7.14 Python/3.9.11 Darwin/21.2.0 exe/x86_64 prompt/off

[12:29:15] andrea:~ $ kubectl version -o yaml
clientVersion:
  buildDate: "2022-06-15T14:14:10Z"
  compiler: gc
  gitCommit: f66044f4361b9f1f96f0053dd46cb7dce5e990a8
  gitTreeState: clean
  gitVersion: v1.24.2
  goVersion: go1.18.3
  major: "1"
  minor: "24"
  platform: darwin/arm64

If I run kubectx I get: [Command failed: /opt/homebrew/bin/kubectx]

And if I run kubens I get:

/opt/homebrew/bin/kubens: line 65: /usr/local/bin/kubectl: cannot execute binary file
error getting current context
error getting current namespace
error: could not list namespaces (is the cluster accessible?)

At last, I want to be precise that the cluster is accessible.