func NewSchedulerCommand(registryOptions ...Option) *cobra.Command
NewSchedulerCommand creates a *cobra.Command object with default parameters and registryOptions
func Run(ctx context.Context, cc *schedulerserverconfig.CompletedConfig, sched *scheduler.Scheduler) error
Run executes the scheduler based on the given configuration. It only returns on error or when context is done.
func Setup(ctx context.Context, opts *options.Options, outOfTreeRegistryOptions ...Option) (*schedulerserverconfig.CompletedConfig, *scheduler.Scheduler, error)
Setup creates a completed config and a scheduler based on the command args and options
Option configures a framework.Registry.
type Option func(runtime.Registry) error
func WithPlugin(name string, factory runtime.PluginFactory) Option
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.