kuberlr icon indicating copy to clipboard operation
kuberlr copied to clipboard

kuberlr always using last version available on the system

Open frayos opened this issue 2 years ago • 0 comments

Hello, I have a strange behavior on Linux Fedora.

kuberlr doesn't seem to be doing what it should.

/home/fedadmin/STANDALONE/kuberlr_0.4.1_linux_amd64/kuberlr -v 5 bins system-wide kubectl binaries +---+---------+-------------------------+ | # | VERSION | BINARY | +---+---------+-------------------------+ | 1 | 1.20.0 | /usr/bin/kubectl1.20.0 | | 2 | 1.20.15 | /usr/bin/kubectl1.20.15 | | 3 | 1.21.0 | /usr/bin/kubectl1.21.0 | | 4 | 1.21.12 | /usr/bin/kubectl1.21.12 | | 5 | 1.22.6 | /usr/bin/kubectl1.22.6 | | 6 | 1.22.9 | /usr/bin/kubectl1.22.9 | +---+---------+-------------------------+ ? which kubectl /usr/local/bin/kubectl

? ll /usr/local/bin/kubectl lrwxrwxrwx. 1 root root 59 May 3 18:34 /usr/local/bin/kubectl -> /home/fedadmin/STANDALONE/kuberlr_0.4.1_linux_amd64/kuberlr

I see the same message as in : https://github.com/flavio/kuberlr/issues/19

A) Command : kubectl -v 9 get pods Process used : /usr/bin/kubectl1.22.9 -v 9 get pods

B) kubectl version tells me : ? kubectl version I0504 10:56:24.834416 1305076 versioner.go:58] no Auth Provider found for name "azure" Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.9", GitCommit:"6df4433e288edc9c40c2e344eb336f63fad45cd2", GitTreeState:"clean", BuildDate:"2022-04-13T19:57:43Z", GoVersion:"go1.16.15", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.15", GitCommit:"d0b89678ea884ca501cba708c56d2ea41debbf2c", GitTreeState:"clean", BuildDate:"2022-01-31T09:05:39Z", GoVersion:"go1.15.15", Compiler:"gc", Platform:"linux/amd64"} WARNING: version difference between client (1.22) and server (1.20) exceeds the supported minor version skew of +/-1

C) Output from A : is : I0504 10:57:05.955160 1306048 versioner.go:58] no Auth Provider found for name "azure" I0504 10:57:06.051634 1306048 loader.go:372] Config loaded from file: /home/fedadmin/.kube/config I0504 10:57:06.052171 1306048 azure.go:93] WARNING: the azure auth plugin is deprecated in v1.22+, unavailable in v1.25+; use https://github.com/Azure/kubelogin instead. To learn more, consult https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins I0504 10:57:06.059518 1306048 round_trippers.go:435] curl -v -XGET -H "Accept: application/json;as=Table;v=v1;g=meta.k8s.io,application/json;as=Table;v=v1beta1;g=meta.k8s.io,application/json" -H "User-Agent: kubectl1.22.9/v1.22.9 (linux/amd64) kubernetes/6df4433" 'https://xxx-aaa-6be4215b.hcp.norwayeast.azmk8s.io:443/api/v1/namespaces/ccc/pods?limit=500' I0504 10:57:06.800707 1306048 round_trippers.go:454] GET https://xxx-aaa-6be4215b.hcp.norwayeast.azmk8s.io:443/api/v1/namespaces/ccc/pods?limit=500 200 OK in 741 milliseconds I0504 10:57:06.800720 1306048 round_trippers.go:460] Response Headers: I0504 10:57:06.800726 1306048 round_trippers.go:463] Cache-Control: no-cache, private I0504 10:57:06.800747 1306048 round_trippers.go:463] Content-Type: application/json I0504 10:57:06.800751 1306048 round_trippers.go:463] X-Kubernetes-Pf-Flowschema-Uid: yyyy-5e27-4643-9139-b7c6b2a726f8 I0504 10:57:06.800753 1306048 round_trippers.go:463] X-Kubernetes-Pf-Prioritylevel-Uid: xxx-e9d8-4e97-84af-772d2dedd582 I0504 10:57:06.800757 1306048 round_trippers.go:463] Date: Wed, 04 May 2022 08:57:06 GMT I0504 10:57:06.800760 1306048 round_trippers.go:463] Audit-Id: fb3788a7-f094-4a30-925e-e50d85ef272f I0504 10:57:06.833166 1306048 request.go:1181] Response Body: {......}

I wonder if this is "azure" specific because of the "azure go auth plugin" deprecation ?

Thanks ! Younes

frayos avatar May 04 '22 09:05 frayos