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:
SataQiu 2024-06-28 18:01:19 +08:00
parent d40676c227
commit 975f1c978d

View File

@ -609,6 +609,7 @@ func isAllowedFlag(flagName string) bool {
kubeadmcmdoptions.NodeName,
kubeadmcmdoptions.KubeconfigDir,
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")
if allowedFlags.Has(flagName) {
return true