mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
Include original error in the error message.
This commit is contained in:
parent
90c09c75d6
commit
e976c4e233
@ -452,7 +452,8 @@ func BuildGenericConfig(s *options.ServerRunOptions, proxyTransport *http.Transp
|
|||||||
// groups. This leads to a nil client above and undefined behaviour further down.
|
// groups. This leads to a nil client above and undefined behaviour further down.
|
||||||
//
|
//
|
||||||
// TODO: get rid of KUBE_API_VERSIONS or define sane behaviour if set
|
// TODO: get rid of KUBE_API_VERSIONS or define sane behaviour if set
|
||||||
glog.Errorf("Failed to create clientset with KUBE_API_VERSIONS=%q. KUBE_API_VERSIONS is only for testing. Things will break.", kubeAPIVersions)
|
glog.Errorf("Failed to create clientset with KUBE_API_VERSIONS=%q: %v. KUBE_API_VERSIONS is only for testing. Things will break.",
|
||||||
|
kubeAPIVersions, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
kubeClientConfig := genericConfig.LoopbackClientConfig
|
kubeClientConfig := genericConfig.LoopbackClientConfig
|
||||||
|
@ -162,7 +162,8 @@ func (c completedConfig) New(delegationTarget genericapiserver.DelegationTarget)
|
|||||||
// groups. This leads to a nil client above and undefined behaviour further down.
|
// groups. This leads to a nil client above and undefined behaviour further down.
|
||||||
//
|
//
|
||||||
// TODO: get rid of KUBE_API_VERSIONS or define sane behaviour if set
|
// TODO: get rid of KUBE_API_VERSIONS or define sane behaviour if set
|
||||||
glog.Errorf("Failed to create clientset with KUBE_API_VERSIONS=%q. KUBE_API_VERSIONS is only for testing. Things will break.", kubeAPIVersions)
|
glog.Errorf("Failed to create clientset with KUBE_API_VERSIONS=%q: %v. KUBE_API_VERSIONS is only for testing. Things will break.",
|
||||||
|
kubeAPIVersions, err)
|
||||||
}
|
}
|
||||||
s.Informers = internalinformers.NewSharedInformerFactory(crdClient, 5*time.Minute)
|
s.Informers = internalinformers.NewSharedInformerFactory(crdClient, 5*time.Minute)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user