Merge pull request #87005 from yuxiaobo96/k8s-unuseful

Add a comment for function WithPlugin
This commit is contained in:
Kubernetes Prow Robot
2020-01-10 12:24:36 -08:00
committed by GitHub

View File

@@ -331,7 +331,7 @@ func newHealthzHandler(config *kubeschedulerconfig.KubeSchedulerConfiguration, s
return pathRecorderMux
}
// WithPlugin creates an Option based on plugin name and factory.
// WithPlugin creates an Option based on plugin name and factory. This function is used to register out-of-tree plugins.
func WithPlugin(name string, factory framework.PluginFactory) Option {
return func(registry framework.Registry) error {
return registry.Register(name, factory)