-
Notifications
You must be signed in to change notification settings - Fork 38.8k
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] Print required flags when running kubeadm upgrade plan #65802
Conversation
Signed-off-by: Xianglin Gao <xianglin.gxl@alibaba-inc.com>
thank you @xlgao-zju |
/kind bug potential cherry-pick? |
@chuckha @xlgao-zju |
@neolit123 I think we can handle RC by using --allow-experimental-upgrades Show unstable versions of Kubernetes as an upgrade alternative and allow upgrading to an alpha/beta/release candidate versions of Kubernetes.
--allow-release-candidate-upgrades Show release candidate versions of Kubernetes as an upgrade alternative and allow upgrading to a release candidate versions of Kubernetes. |
that's true. if the user types:
to my understanding it would print:
so it's a question if we want to print the exact |
Maybe this is better instead of using the user's initial flag? When the version is RC: You can now apply the upgrade by executing the following command:
kubeadm upgrade apply <some-RC-version> --allow-release-candidate-upgrades when the version is some other unstable version: You can now apply the upgrade by executing the following command:
kubeadm upgrade apply <some-other-unstable-version> --allow-experimental-upgrades |
@neolit123 And using the user's initial flag will make it difficult to deal with the test cases.... |
@xlgao-zju we should support both flags, I like the idea of printing the correct one based on the suggested version instead of printing the flag the user passed in even though that's the only time we'll see this output. |
Signed-off-by: Xianglin Gao <xianglin.gxl@alibaba-inc.com>
@chuckha @neolit123 Updated based on:
PTAL |
@xlgao-zju waiting on @chuckha for confirmation. |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: luxas, neolit123, xlgao-zju 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 |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here. |
What this PR does / why we need it:
print required flags when running kubeadm upgrade plan
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Close kubernetes/kubeadm#935
Special notes for your reviewer:
/assign @chuckha
/assign @neolit123
Release note: