• Stuart McLaren's avatar
    Fix kubectl version --client=true · d4ee919f
    Stuart McLaren authored
    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", ...}
    d4ee919f
Name
Last commit
Last update
..
BUILD Loading commit data...
version.go Loading commit data...