Skip to content

Commit 3eec87c

Browse files
committed
update WithPlugin comment, in case remove function
1 parent 650220f commit 3eec87c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/kube-scheduler/app/server.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ func getRecorderFactory(cc *schedulerserverconfig.CompletedConfig) profile.Recor
332332
}
333333
}
334334

335-
// WithPlugin creates an Option based on plugin name and factory. This function is used to register out-of-tree plugins.
335+
// 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,
336+
// hence there are no references to it from the kubernetes scheduler code base.
336337
func WithPlugin(name string, factory framework.PluginFactory) Option {
337338
return func(registry framework.Registry) error {
338339
return registry.Register(name, factory)

0 commit comments

Comments
 (0)