mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-03 11:48:15 +00:00
kubeadm:return error info normally
This commit is contained in:
@@ -279,7 +279,7 @@ func RunCreateToken(out io.Writer, client clientset.Interface, cfgPath string, i
|
||||
}
|
||||
} else {
|
||||
if certificateKey != "" {
|
||||
return errors.Wrap(err, "cannot use --certificate-key without --print-join-command")
|
||||
return errors.New("cannot use --certificate-key without --print-join-command")
|
||||
}
|
||||
fmt.Fprintln(out, internalcfg.BootstrapTokens[0].Token.String())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user