mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 15:58:37 +00:00
adds log when --kubeconfig with wrong config
This commit is contained in:
parent
278b1e56c2
commit
10eecc771d
@ -467,6 +467,8 @@ func run(s *options.KubeletServer, kubeDeps *kubelet.KubeletDeps) (err error) {
|
||||
} else {
|
||||
if s.RequireKubeConfig {
|
||||
return fmt.Errorf("invalid kubeconfig: %v", err)
|
||||
} else if s.KubeConfig.Provided() && !standaloneMode {
|
||||
glog.Warningf("Invalid kubeconfig: %v", err)
|
||||
}
|
||||
if standaloneMode {
|
||||
glog.Warningf("No API client: %v", err)
|
||||
|
Loading…
Reference in New Issue
Block a user