mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
update WithPlugin comment, in case remove function
This commit is contained in:
parent
650220fa64
commit
3eec87cd91
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user