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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user