Merge pull request #77768 from yagonobre/upload-certs

Improve error message when user provide invalid certificate key
This commit is contained in:
Kubernetes Prow Robot 2019-05-12 19:24:08 -07:00 committed by GitHub
commit f5a1ceb1fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,7 @@ func UploadCerts(client clientset.Interface, cfg *kubeadmapi.InitConfiguration,
fmt.Printf("[upload-certs] Storing the certificates in Secret %q in the %q Namespace\n", kubeadmconstants.KubeadmCertsSecret, metav1.NamespaceSystem)
decodedKey, err := hex.DecodeString(key)
if err != nil {
return err
return errors.Wrap(err, "error decoding certificate key")
}
tokenID, err := createShortLivedBootstrapToken(client)
if err != nil {