little-angry-clouds / kubernetes-binaries-managers

Kubernetes related binaries manager.
GNU General Public License v3.0
101 stars 11 forks source link

kbenv use auto not working with AWS EKS #45

Closed EHJ-52n closed 2 weeks ago

EHJ-52n commented 1 year ago

The AWS EKS k8s version postfix results in not working kbenv use auto:

~ kbenv version    
Commit: d5e1e2075e88bf4f791749cc06ae02f82fb8a710
Date: "2022-05-20T12:20:19Z"
Version: 1.0.0
~ kubectl version                                                                                                    
Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.17", GitCommit:"953be8927218ec8067e1af2641e540238ffd7576", GitTreeState:"clean", BuildDate:"2023-02-22T13:34:27Z", GoVersion:"go1.19.6", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"23+", GitVersion:"v1.23.17-eks-a5565ad", GitCommit:"23f44c7dd4e8e23856387345e7cb80bf0f93ced6", GitTreeState:"clean", BuildDate:"2023-06-15T21:19:39Z", GoVersion:"go1.19.6", Compiler:"gc", Platform:"linux/amd64"}
~ kbenv use auto   
Done! Using auto version.
~ kubectl version
fork/exec /home/eike/.bin/kubectl-v1.23.17-eks-a5565ad: no such file or directory

The postfix -eks-a5565ad MUST be removed when parsing the server's GitVersion to identify the binary version to use.

creeder-uturn commented 3 weeks ago

I think this is a duplicate of https://github.com/little-angry-clouds/kubernetes-binaries-managers/issues/37

There is a PR https://github.com/little-angry-clouds/kubernetes-binaries-managers/pull/38 to fix it, as well

EHJ-52n commented 2 weeks ago

Thank you for establishing the link between these two issues and pointing to the PR.

The project itself seems to be abandoned.

Do you know any working fork?

creeder-uturn commented 2 weeks ago

@EHJ-52n unfortunately, I do not. I personally just installed the newest version as I have no very old clusters to manage and I haven't run into any version imcompatibilities even if outside of the window. Hopefully this gets re-maintained soon :)