mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 05:30:26 +00:00
kubeadm: disallow the mixture of --config and --certificate-key
Similar to --token, do not allow the mixture of --config and --certificate-key. If the user has fed a config, it is expected that the certificate key should also be provided in the config and not from the command line.
This commit is contained in:
@@ -433,7 +433,6 @@ func isAllowedFlag(flagName string) bool {
|
||||
kubeadmcmdoptions.KubeconfigDir,
|
||||
kubeadmcmdoptions.UploadCerts,
|
||||
kubeadmcmdoptions.ExperimentalUploadCerts,
|
||||
kubeadmcmdoptions.CertificateKey,
|
||||
"print-join-command", "rootfs", "v")
|
||||
if knownFlags.Has(flagName) {
|
||||
return true
|
||||
|
Reference in New Issue
Block a user