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
(cleanup/scheduler): remove unused function #88626
Conversation
/sig scheduling |
/assign @ahg-g |
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
This function is used to register out of tree plugins, we shouldn't remove it. Please update the comment saying: "// WithPlugin creates an Option based on plugin name and factory. Please don't remove this function: it is used to register out-of-tree plugins, hence there are no references to it from the kubernetes scheduler code base" |
/hold |
95465c9
to
8a98b7d
Compare
ok, update comment. |
cmd/kube-scheduler/app/server.go
Outdated
func WithPlugin(name string, factory framework.PluginFactory) Option { | ||
return func(registry framework.Registry) error { | ||
return registry.Register(name, factory) | ||
} | ||
} | ||
} |
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.
revert this, add empty line at the end
cmd/kube-scheduler/app/server.go
Outdated
@@ -332,9 +332,10 @@ func getRecorderFactory(cc *schedulerserverconfig.CompletedConfig) profile.Recor | |||
} | |||
} | |||
|
|||
// WithPlugin creates an Option based on plugin name and factory. This function is used to register out-of-tree plugins. | |||
// WithPlugin creates an Option based on plugin name and factory. Please don't remove this function: it is used to register out-of-tree plugins, | |||
// hence there are no references to it from the kubernetes scheduler code base |
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.
end comment with a "."
8a98b7d
to
3eec87c
Compare
/kind cleanup |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahg-g, yuzhiquan 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 |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: