-
Notifications
You must be signed in to change notification settings - Fork 716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"can not mix '--config' with arguments" common issues about v1beta4 UpgradeConfiguration #3084
Comments
i think we need to drop support if any flag that performs a cluster reconfiguration on upgrade. what other flags are problematic? edit: checked https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-upgrade/ and i think we have config coverage for most flags, some flags were discussed as not desired for config 🤔 |
cc @calvin0327 |
Ok, I will send a PR later to deprecate
Maybe not completely, but I found these problems: # kubeadm upgrade plan --config upgrade.yaml --allow-missing-template-keys xx --output xx --show-managed-fields xx
can not mix '--config' with arguments [allow-missing-template-keys、output、show-managed-fields] |
if we are just passing --config but it complains about some options that we didn't pass, that seems like a bug. please send a PR for that too if possible. one step in the right direction would be to enable --config for upgrade in kinder workflows. i will take this action item. |
Sorry for the misleading. These flags were passed with |
i think these flags come from our usage of the kubectl cmd lib for structured output. --output is our flag. these should be allowed with config. |
In the Kubespray project, we use the following flags for
How to use these options with |
the usage of v1beta3.InitConfiguration|ClusterConfiguration with --config on upgrade has been long deprecated and there was a warning printed to the user for ~10 releases. it's a non-supported and also dangerous form of reconfguration. it's just not possible to use --config and mix these options, which is the expected behavior. --yes does not exist in v1beta4 so mixing it with --config should be ok, in 1.31. you should drop your usage of --config on upgrade to 1.30 and 1.31 for non-v1beta4 APIs and use similar actions to reconfigure a kubeadm cluster: |
@neolit123 |
When I try to upgrade the cluster using
kubeadm upgrade apply/plan --config upgrade.yaml
(master branch latest code), many flags can not be mixed but are not defined in the config file.For example, an error will occur when you execute this command
kubeadm upgrade apply v1.30.0 --config upgrade.yaml --feature-gates EtcdLearnerMode=true
Other commands and flags may have similar problems that must be checked carefully.
I create this issue to discuss a solution.
There are two ways to handle this:
UpgradeConfiguration
)--config
what do you think?@neolit123 @pacoxu
We'd better fix this issue before the new version is released to reduce the problems introduced by
v1beta4
Similar with: kubernetes/kubernetes#125779
The text was updated successfully, but these errors were encountered: