mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
kubeadm: fix a bug where the path of the manifest can not be specified when 'upgrade diff' specified a config file
This commit is contained in:
parent
d40676c227
commit
975f1c978d
@ -609,6 +609,7 @@ func isAllowedFlag(flagName string) bool {
|
|||||||
kubeadmcmdoptions.NodeName,
|
kubeadmcmdoptions.NodeName,
|
||||||
kubeadmcmdoptions.KubeconfigDir,
|
kubeadmcmdoptions.KubeconfigDir,
|
||||||
kubeadmcmdoptions.UploadCerts,
|
kubeadmcmdoptions.UploadCerts,
|
||||||
|
"api-server-manifest", "controller-manager-manifest", "scheduler-manifest", // TODO: remove this line when these flags are deprecated and dropped from "kubeadm upgrade diff"
|
||||||
"print-join-command", "rootfs", "v", "log-file", "yes")
|
"print-join-command", "rootfs", "v", "log-file", "yes")
|
||||||
if allowedFlags.Has(flagName) {
|
if allowedFlags.Has(flagName) {
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user