Documentation ¶
Overview ¶
Package app implements a Server object for running the scheduler.
Index ¶
- func NewDeschedulerCommand(registryOptions ...Option) *cobra.Command
- func Run(ctx context.Context, cc *deschedulerappconfig.CompletedConfig, ...) error
- func Setup(ctx context.Context, opts *options.Options, outOfTreeRegistryOptions ...Option) (*deschedulerappconfig.CompletedConfig, *descheduler.Descheduler, error)
- func StartDescheduler(ctx context.Context, cc *deschedulerappconfig.CompletedConfig)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeschedulerCommand ¶
NewDeschedulerCommand creates a *cobra.Command object with default parameters and registryOptions
func Run ¶
func Run(ctx context.Context, cc *deschedulerappconfig.CompletedConfig, desched *descheduler.Descheduler) error
Run executes the scheduler based on the given configuration. It only returns on error or when context is done.
func Setup ¶
func Setup(ctx context.Context, opts *options.Options, outOfTreeRegistryOptions ...Option) (*deschedulerappconfig.CompletedConfig, *descheduler.Descheduler, error)
Setup creates a completed config and a scheduler based on the command args and options
func StartDescheduler ¶
func StartDescheduler(ctx context.Context, cc *deschedulerappconfig.CompletedConfig)
Types ¶
type Option ¶
type Option func(frameworkruntime.Registry) error
Option configures a framework.Registry.
Click to show internal directories.
Click to hide internal directories.