mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 00:34:10 -04:00
apply review advice again
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
This commit is contained in:
parent
ef69bc910f
commit
d2cfd4b82f
1 changed files with 1 additions and 1 deletions
|
|
@ -330,7 +330,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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue