-
Notifications
You must be signed in to change notification settings - Fork 38.6k
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
kubeadm: add --feature-gates flag for kubeadm upgrade node #118316
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: SataQiu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/priority important-soon
LGTM label has been added. Git tree hash: 22e3472c1e0ff2731e653dbea3a3758cd6e7ee71
|
/lgtm |
Sorry. After a further analysis, I find that |
but this can override that if specified. No harm? |
It shouldn't hurt too much, but we need to consider whether forcing IMO, |
For NonRoot FG, this can allow user to have a control-plane using not-root and another one using root. For this case, it makes a little sense. For upgrade-addon-after-control-plane FG, you can choose when to upgrade kube-proxy/coredns. But it is not that necessary IMO. |
i was wandering if this is right or not. if there are node specific feature gates we must store them somewhere per node. this is missing design bits in the api and kep work. if we keep this override per "upgrade node" it becomes weird. |
So |
What type of PR is this?
/kind bug
/kind feature
What this PR does / why we need it:
kubeadm: add
--feature-gates
flag forkubeadm upgrade node
Which issue(s) this PR fixes:
Ref kubernetes/kubeadm#2346
Special notes for your reviewer:
This flag is needed to upgrade a cluster with
UpgradeAddonsBeforeControlPlane
feature gate enabled.Also align with
kubeadm upgrade apply/plan
.Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: