Commit Graph

7 Commits

Author SHA1 Message Date
Stuart McLaren
d4ee919fb5 Fix kubectl version --client=true
Getting the client version fails if the kubeconfig is invalid:

 $ kubectl version --client=true
 Error in configuration:
 * unable to read client-cert .../client.crt: no such file or directory
 * unable to read client-key .../client.key: no such file or directory
 * unable to read certificate-authority .../ca.crt: no such file or directory

Update to match behaviour on v1.10.13 and earlier:

 $ kubectl version --client=true
 Client Version: version.Info{Major:"1", ...}
2019-04-16 18:56:53 +01:00
Sean Sullivan
d4d6e19f1e kubectl: removes pkg/version dependency 2019-03-28 16:08:34 -07:00
ds-ms
0417d23a4c Fix linting issues in pkg/kubectl/cmd/version
Signed-off-by: ds-ms <desattir@microsoft.com>
2019-01-24 12:26:15 +05:30
Davanum Srinivas
43f523d405
Switch to sigs.k8s.io/yaml from ghodss/yaml
Change-Id: Ic72b5131bf441d159012d67a6a3d87088d0e6d31
2018-11-07 13:17:32 -05:00
David Eads
4efb020860 kubectl version should print just client information in the absence of kubeconfig 2018-11-06 16:25:39 -05:00
Maciej Szulik
21789b85a6
Move pkg/kubectl/cmd/templates -> pkg/kubectl/util/temlpates 2018-10-11 22:01:03 +02:00
Maciej Szulik
33adf367f9
Move each kubectl command to a separate directory 2018-10-06 18:44:05 +02:00