-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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: remove deprecated upgrade flags for 1.32 #127123
kubeadm: remove deprecated upgrade flags for 1.32 #127123
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: neolit123 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 |
/triage accepted |
cmd.Flags().MarkDeprecated("controller-manager-manifest", "This flag is deprecated and will be removed in a future release.") | ||
cmd.Flags().StringVar(&flags.schedulerManifestPath, "scheduler-manifest", defaultSchedulerManifestPath, "path to scheduler manifest") | ||
cmd.Flags().MarkDeprecated("scheduler-manifest", "This flag is deprecated and will be removed in a future release.") | ||
cmd.Flags().IntVarP(&flags.contextLines, "context-lines", "c", 3, "How many lines of context in the diff") |
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.
kubernetes/cmd/kubeadm/app/cmd/upgrade/diff.go
Lines 57 to 61 in bce499c
var ( | |
defaultAPIServerManifestPath = constants.GetStaticPodFilepath(constants.KubeAPIServer, constants.GetStaticPodDirectory()) | |
defaultControllerManagerManifestPath = constants.GetStaticPodFilepath(constants.KubeControllerManager, constants.GetStaticPodDirectory()) | |
defaultSchedulerManifestPath = constants.GetStaticPodFilepath(constants.KubeScheduler, constants.GetStaticPodDirectory()) | |
) |
As the CI failure, those variables can be removed as well.
Overall LGTM.
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.
looks like i also removed context-lines which should not be done.
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.
updated.
The flags for control-plane component manifest under 'upgrade diff' and the --feture-gates flag were deprecated and NOOP in 1.31 and can be removed in 1.32.
d16ddf4
to
730fd13
Compare
looking for LGTM |
/lgtm |
LGTM label has been added. Git tree hash: a114ef93b170212a0ff3e2d313d94e9eb6f73dde
|
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
The flags for control-plane component manifest under 'upgrade diff' and the --feture-gates flag were deprecated and NOOP in 1.31 and can be removed in 1.32.
Which issue(s) this PR fixes:
fixes kubernetes/kubeadm#3083
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: