mirror of https://github.com/k3s-io/k3s
parent
ed2bdd53dc
commit
980de9d38b
|
@ -50,7 +50,7 @@ func ExamplePhase() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// implement your phase logic...
|
// implement your phase logic...
|
||||||
fmt.Printf("%v", d.Data())
|
fmt.Printf("%v\n", d.Data())
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -67,7 +67,7 @@ func ExamplePhase() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// implement your phase logic...
|
// implement your phase logic...
|
||||||
fmt.Printf("%v", d.Data())
|
fmt.Printf("%v\n", d.Data())
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,7 @@ func ExampleRunner_Run() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// implement your phase logic...
|
// implement your phase logic...
|
||||||
fmt.Printf("%v", d.Data())
|
fmt.Printf("%v\n", d.Data())
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -174,7 +174,7 @@ func BackupAPIServerCertIfNeeded(cfg *kubeadmapi.InitConfiguration, dryRun bool)
|
||||||
// Don't fail the upgrade phase if failing to backup kube-apiserver cert and key, just continue rotating the cert
|
// Don't fail the upgrade phase if failing to backup kube-apiserver cert and key, just continue rotating the cert
|
||||||
// TODO: We might want to reconsider this choice.
|
// TODO: We might want to reconsider this choice.
|
||||||
if err := backupAPIServerCertAndKey(certAndKeyDir); err != nil {
|
if err := backupAPIServerCertAndKey(certAndKeyDir); err != nil {
|
||||||
fmt.Printf("[postupgrade] WARNING: failed to backup kube-apiserver cert and key: %v", err)
|
fmt.Printf("[postupgrade] WARNING: failed to backup kube-apiserver cert and key: %v\n", err)
|
||||||
}
|
}
|
||||||
return certsphase.CreateCertAndKeyFilesWithCA(
|
return certsphase.CreateCertAndKeyFilesWithCA(
|
||||||
&certsphase.KubeadmCertAPIServer,
|
&certsphase.KubeadmCertAPIServer,
|
||||||
|
|
|
@ -63,7 +63,7 @@ func ParseArgumentListToMap(arguments []string) map[string]string {
|
||||||
// Warn in all other cases, but don't error out. This can happen only if the user has edited the argument list by hand, so they might know what they are doing
|
// Warn in all other cases, but don't error out. This can happen only if the user has edited the argument list by hand, so they might know what they are doing
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if i != 0 {
|
if i != 0 {
|
||||||
fmt.Printf("[kubeadm] WARNING: The component argument %q could not be parsed correctly. The argument must be of the form %q. Skipping...", arg, "--")
|
fmt.Printf("[kubeadm] WARNING: The component argument %q could not be parsed correctly. The argument must be of the form %q. Skipping...\n", arg, "--")
|
||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue