Merge pull request #78542 from neolit123/kubeadm-mixed-cert-key

kubeadm: disallow the mixture of --config and --certificate-key
This commit is contained in:
Kubernetes Prow Robot 2019-06-01 09:51:07 -07:00 committed by GitHub
commit c81ae93159
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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