mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +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:
parent
6d70e7ff01
commit
d6f1dff1ce
@ -433,7 +433,6 @@ func isAllowedFlag(flagName string) bool {
|
|||||||
kubeadmcmdoptions.KubeconfigDir,
|
kubeadmcmdoptions.KubeconfigDir,
|
||||||
kubeadmcmdoptions.UploadCerts,
|
kubeadmcmdoptions.UploadCerts,
|
||||||
kubeadmcmdoptions.ExperimentalUploadCerts,
|
kubeadmcmdoptions.ExperimentalUploadCerts,
|
||||||
kubeadmcmdoptions.CertificateKey,
|
|
||||||
"print-join-command", "rootfs", "v")
|
"print-join-command", "rootfs", "v")
|
||||||
if knownFlags.Has(flagName) {
|
if knownFlags.Has(flagName) {
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user