app

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Overview

Package app implements a Server object for running the scheduler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeschedulerCommand

func NewDeschedulerCommand(registryOptions ...Option) *cobra.Command

NewDeschedulerCommand creates a *cobra.Command object with default parameters and registryOptions

func Run

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

Types

type Option

type Option func(frameworkruntime.Registry) error

Option configures a framework.Registry.

Directories

Path Synopsis
Package options provides the descheduler flags
Package options provides the descheduler flags

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL