Skip to content

Commit

Permalink
Merge pull request kubernetes#87005 from yuxiaobo96/k8s-unuseful
Browse files Browse the repository at this point in the history
Add a comment for function WithPlugin
  • Loading branch information
k8s-ci-robot authored Jan 10, 2020
2 parents 66262e3 + d2cfd4b commit 28b8cfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kube-scheduler/app/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 28b8cfb

Please sign in to comment.