Open chendave opened 1 year ago
but it is not clear why some of them are allowed for the mix configuration in the first place.
my vote, with respect to reset's --config:
some flags exist as the only option and have no alternative in config, e.g. --dry-run
Added a TODO item in the issue: https://github.com/kubernetes/kubeadm/issues/2890
- we can allow the mixture of all options that don't exist in the reset config
- all flag options that also exists in config should not be allowed - i.e. kubeadm should error saying "flag not allowed with --config mix" - e.g. --skip-phases
I'm +1 for this. All fields that can be defined in the configuration file should no longer be allowed to be specified on the CLI flags, and we prefer to guide users to use the configuration file instead of relying too heavily on the CLI flags.
if we don't enumerate some action items here, perhaps we should just close? the story is clear, it feels like - @chendave as this ticket was more of a discussion / question.
biggest blocker of course is that the cli is ga, and all non experimental flags must take one year deprecation period.
@neolit123 I added some action items, I'd suggest to keep this open so won't forget to fix it in the 1.29.
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
What happened?
pls see: https://github.com/kubernetes/kubernetes/pull/113583#discussion_r1254293282
the major reason to against the mix configuration is:
but it is not clear why some of them are allowed for the mix configuration in the first place.
https://github.com/kubernetes/kubernetes/blob/0ae9aaacfa217b18652f34d6ef29f08a15851b0a/cmd/kubeadm/app/apis/kubeadm/validation/validation.go#L560-L573
What you expected to happen?
How to reproduce it (as minimally and precisely as possible)?
Anything else we need to know?