mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
apply review advice again
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
This commit is contained in:
parent
ef69bc910f
commit
d2cfd4b82f
@ -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 New Issue
Block a user