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.
k3s-v1.15.3
Lubomir I. Ivanov 2019-05-30 22:35:41 +03:00
parent 6d70e7ff01
commit d6f1dff1ce
1 changed files with 0 additions and 1 deletions

View File

@ -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