Documentation ¶
Overview ¶
Package app implements a Server object for running the scheduler.
Index ¶
- func NewSchedulerCommand(registryOptions ...Option) *cobra.Command
- func Run(ctx context.Context, cc *schedulerserverconfig.CompletedConfig, ...) error
- func Setup(ctx context.Context, opts *options.Options, outOfTreeRegistryOptions ...Option) (*schedulerserverconfig.CompletedConfig, *scheduler.Scheduler, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSchedulerCommand ¶
NewSchedulerCommand creates a *cobra.Command object with default parameters and registryOptions
func Run ¶ added in v1.11.0
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.
Types ¶
type Option ¶ added in v1.16.0
Option configures a framework.Registry.
func WithPlugin ¶ added in v1.16.0
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.
Click to show internal directories.
Click to hide internal directories.