mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 06:32:32 +00:00
Merge pull request #87005 from yuxiaobo96/k8s-unuseful
Add a comment for function WithPlugin
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user