kubernetes: k8s.io/kubernetes/cmd/kube-scheduler/app Index | Files | Directories

package app

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

Package app implements a Server object for running the scheduler.

Index

Package Files

server.go

func NewSchedulerCommand Uses

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

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

func Run Uses

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.

type Option Uses

type Option func(framework.Registry) error

Option configures a framework.Registry.

func WithPlugin Uses

func WithPlugin(name string, factory framework.PluginFactory) Option

WithPlugin creates an Option based on plugin name and factory.

Directories

PathSynopsis
config
options
testing

Package app imports 41 packages (graph) and is imported by 37 packages. Updated 2019-11-13. Refresh now. Tools for package owners.