FS#64777 - [kubectl] Kubectl doesn't report version correctly
Attached to Project:
Community Packages
Opened by Neil Green (neilg) - Sunday, 08 December 2019, 18:34 GMT
Last edited by Christian Rebischke (Shibumi) - Saturday, 25 January 2020, 21:55 GMT
Opened by Neil Green (neilg) - Sunday, 08 December 2019, 18:34 GMT
Last edited by Christian Rebischke (Shibumi) - Saturday, 25 January 2020, 21:55 GMT
|
Details
Description: kubectl version reports its version as
Client Version: version.Info{Major:"", Minor:"", GitVersion:"v0.0.0-master+$Format:%h$", GitCommit:"$Format:%H$", GitTreeState:"", BuildDate:"1970-01-01T00:00:00Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"linux/amd64"} Note the $Format:% entries and the BuildDate Name : kubectl Version : 1.16.3-1 |
This task depends upon
Closed by Christian Rebischke (Shibumi)
Saturday, 25 January 2020, 21:55 GMT
Reason for closing: Fixed
Additional comments about closing: kubectl-1.17.2-1
Saturday, 25 January 2020, 21:55 GMT
Reason for closing: Fixed
Additional comments about closing: kubectl-1.17.2-1
Starting deploy...
kubectl client version: .
couldn't get kubectl minor version: strconv.Atoi: parsing "": invalid syntax
```
⚠️ /usr/bin/kubectl is version 0.0.0-master+70132b0f13, and is incompatible with Kubernetes 1.17.0. You will need to update /usr/bin/kubectl or use 'minikube kubectl' to connect with this cluster
```
sorry looks like somebody forgot to assign the bug to me.
I will have a look into this asap.
I guess it has something to do with building kubectl via `go.mod` instead of using the official makefiles.
The problem is that kubernetes makefiles are still not go 13 ready.