mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
Change misleading log message
Secret instead of configmap for upload certs phase
This commit is contained in:
parent
69718b975d
commit
7bf9acd303
@ -86,7 +86,7 @@ func CreateCertificateKey() (string, error) {
|
|||||||
|
|
||||||
//UploadCerts save certs needs to join a new control-plane on kubeadm-certs sercret.
|
//UploadCerts save certs needs to join a new control-plane on kubeadm-certs sercret.
|
||||||
func UploadCerts(client clientset.Interface, cfg *kubeadmapi.InitConfiguration, key string) error {
|
func UploadCerts(client clientset.Interface, cfg *kubeadmapi.InitConfiguration, key string) error {
|
||||||
fmt.Printf("[upload-certs] Storing the certificates in ConfigMap %q in the %q Namespace\n", kubeadmconstants.KubeadmCertsSecret, metav1.NamespaceSystem)
|
fmt.Printf("[upload-certs] Storing the certificates in Secret %q in the %q Namespace\n", kubeadmconstants.KubeadmCertsSecret, metav1.NamespaceSystem)
|
||||||
decodedKey, err := hex.DecodeString(key)
|
decodedKey, err := hex.DecodeString(key)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user