mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 23:15:14 +00:00
kubeadm: disallow the mixture of --config and --patches
This commit is contained in:
parent
375ef778c4
commit
b7ea7a7766
@ -570,7 +570,6 @@ func isAllowedFlag(flagName string) bool {
|
||||
kubeadmcmdoptions.NodeName,
|
||||
kubeadmcmdoptions.KubeconfigDir,
|
||||
kubeadmcmdoptions.UploadCerts,
|
||||
kubeadmcmdoptions.Patches,
|
||||
"print-join-command", "rootfs", "v", "log-file")
|
||||
if allowedFlags.Has(flagName) {
|
||||
return true
|
||||
|
Loading…
Reference in New Issue
Block a user