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
Fix kubeadm upgrade ignores HighAvailability feature gate #62455
Fix kubeadm upgrade ignores HighAvailability feature gate #62455
Conversation
Do we also need this change for |
Also can you add a unit test? |
@@ -70,16 +70,19 @@ func enforceRequirements(flags *cmdUpgradeFlags, dryRun bool, newK8sVersion stri | |||
cfg.KubernetesVersion = newK8sVersion | |||
} | |||
|
|||
// If features gates are passed to the command line, use it (otherwise use featureGates from configuration) |
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.
It'd be good to tell users this in the flag's description. They should know the behavior, IMO.
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.
Agreed, but I'm not going to block on this and with the overhaul coming to CLI+phases+Config we will add that documentation.
|
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
/approve
@@ -70,16 +70,19 @@ func enforceRequirements(flags *cmdUpgradeFlags, dryRun bool, newK8sVersion stri | |||
cfg.KubernetesVersion = newK8sVersion | |||
} | |||
|
|||
// If features gates are passed to the command line, use it (otherwise use featureGates from configuration) |
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.
Agreed, but I'm not going to block on this and with the overhaul coming to CLI+phases+Config we will add that documentation.
@timothysc: GitHub didn't allow me to request PR reviews from the following users: liztio, fabriziopandini. Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[MILESTONENOTIFIER] Milestone Pull Request: Up-to-date for process Pull Request Labels
|
/test all [submit-queue is verifying that this PR is safe to merge] |
/retest |
/lgtm |
@liztio: changing LGTM is restricted to assignees, and only kubernetes org members may be assigned issues. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini, liztio, timothysc 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 |
Automatic merge from submit-queue (batch tested with PRs 62455, 62465, 62427, 62416, 62411). If you want to cherry-pick this change to another branch, please follow the instructions here. |
What this PR does / why we need it:
This PR fixes kubernetes/kubeadm#731
Which issue(s) this PR fixes:
Fixes kubernetes/kubeadm#731
Special notes for your reviewer:
The problem is a regression introduced by #55952 which added a --feature-gates
flag to
kubeadm upgrade
, to be used for updating feature gates during the upgrade process (so it is update + upgrade).The original implementation always override the actual feature gates with the flag value, even when the flag is not set; this PR fixes this behaviour making
kubeadm upgrade
considers the flag value only if set, otherwise actual feature gates will be preserved./cc @kubernetes/sig-cluster-lifecycle-pr-reviews @kubernetes/sig-cluster-lifecycle-bugs
Release note: