Merge pull request #73501 from dlipovetsky/fix-kubelet-exec-error

kubeadm: Make exec error message more informative
This commit is contained in:
Kubernetes Prow Robot 2019-01-30 20:26:03 -08:00 committed by GitHub
commit 92076f0d2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ func GetKubeletVersion(execer utilsexec.Interface) (*version.Version, error) {
command := execer.Command("kubelet", "--version")
out, err := command.CombinedOutput()
if err != nil {
return nil, err
return nil, errors.Wrap(err, "cannot execute 'kubelet --version'")
}
cleanOutput := strings.TrimSpace(string(out))