package app

import "k8s.io/kubernetes/cmd/kube-scheduler/app"

Package app implements a Server object for running the scheduler.

Index

Functions

func NewSchedulerCommand

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

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

func Run

func Run(cc schedulerserverconfig.CompletedConfig, stopCh <-chan struct{}, registryOptions ...Option) error

Run executes the scheduler based on the given configuration. It only return on error or when stopCh is closed.

Types

type Option

type Option func(framework.Registry) error

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.

Source Files

server.go

Directories

PathSynopsis
cmd/kube-scheduler/app/config
cmd/kube-scheduler/app/options
cmd/kube-scheduler/app/testing
Version
v1.16.14
Published
Aug 13, 2020
Platform
js/wasm
Imports
40 packages
Last checked
11 minutes ago

Tools for package owners.