From 3eec87cd9155ddf7aa1596abffdaf56fce23324d Mon Sep 17 00:00:00 2001 From: yuzhiquanlong Date: Sat, 29 Feb 2020 19:53:04 +0800 Subject: [PATCH] update WithPlugin comment, in case remove function --- cmd/kube-scheduler/app/server.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/kube-scheduler/app/server.go b/cmd/kube-scheduler/app/server.go index ca9c9446e58..2339c1755df 100644 --- a/cmd/kube-scheduler/app/server.go +++ b/cmd/kube-scheduler/app/server.go @@ -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)