package app
import "k8s.io/kubernetes/cmd/kube-scheduler/app"
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, outOfTreeRegistryOptions ...Option) error
- type Option
Functions ¶
func NewSchedulerCommand ¶
NewSchedulerCommand creates a *cobra.Command object with default parameters and registryOptions
func Run ¶
func Run(ctx context.Context, cc schedulerserverconfig.CompletedConfig, outOfTreeRegistryOptions ...Option) error
Run executes the scheduler based on the given configuration. It only returns on error or when context is done.
Types ¶
type Option ¶
Option configures a framework.Registry.
func WithPlugin ¶
func WithPlugin(name string, factory framework.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.
Source Files ¶
server.go
Directories ¶
Path | Synopsis |
---|---|
cmd/kube-scheduler/app/config | |
cmd/kube-scheduler/app/options | |
cmd/kube-scheduler/app/testing |
- Version
- v1.18.6
- Published
- Jul 15, 2020
- Platform
- js/wasm
- Imports
- 41 packages
- Last checked
- 1 hour ago –
Tools for package owners.