The kubectl wrapper has been having difficulties detecting the correct version of certain Kubernetes clusters, particularly those built with EKS or Okteto.
$ kubectl version
fork/exec /Users/ty/.bin/kubectl-v1.21.14-eks-fb459a0: no such file or directory
fork/exec /Users/ty/.bin/kubectl-v1.23.11-gke.300: no such file or directory
So far, I've been able to work around these problems by manually symlinking the requested versions to the correct (although manually installed versions).
I believe that this line could be reworked a bit to basically trim any extraneous version information from the auto-detected Version. (I think we'd probably want to NOT trim the extra version info if it starts with -alpha, -beta, or -rc, since those are valid versions available via kbenv to download/install)
I'll start working on a draft PR for this... but I figured I'd start the conversation as an issue in case there's disagreement or additional context here that I'm missing before I get too far into it.
The
kubectl
wrapper has been having difficulties detecting the correct version of certain Kubernetes clusters, particularly those built with EKS or Okteto.Examples of versions that are causing problems:
Errors:
So far, I've been able to work around these problems by manually symlinking the requested versions to the correct (although manually installed versions).
I believe that this line could be reworked a bit to basically trim any extraneous version information from the auto-detected Version. (I think we'd probably want to NOT trim the extra version info if it starts with
-alpha
,-beta
, or-rc
, since those are valid versions available via kbenv to download/install)I'll start working on a draft PR for this... but I figured I'd start the conversation as an issue in case there's disagreement or additional context here that I'm missing before I get too far into it.
Cheers, Ty