Merge pull request #88626 from yuzhiquan/patch-clean1

(cleanup/scheduler): remove unused function
This commit is contained in:
Kubernetes Prow Robot 2020-02-29 07:54:40 -08:00 committed by GitHub
commit 56987164f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -332,7 +332,8 @@ 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.
func WithPlugin(name string, factory framework.PluginFactory) Option {
return func(registry framework.Registry) error {
return registry.Register(name, factory)