app

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommandStartGardenerScheduler

func NewCommandStartGardenerScheduler(ctx context.Context) *cobra.Command

NewCommandStartGardenerScheduler creates a *cobra.Command object with default parameters

Types

type GardenerScheduler

type GardenerScheduler struct {
	Config                 *config.SchedulerConfiguration
	Identity               *gardencorev1beta1.Gardener
	GardenerNamespace      string
	K8sGardenClient        kubernetes.Interface
	K8sGardenCoreInformers gardencoreinformers.SharedInformerFactory
	Logger                 *logrus.Logger
	Recorder               record.EventRecorder
	LeaderElection         *leaderelection.LeaderElectionConfig
}

GardenerScheduler represents all the parameters required to start the Gardener scheduler.

func NewGardenerScheduler

func NewGardenerScheduler(cfg *config.SchedulerConfiguration) (*GardenerScheduler, error)

NewGardenerScheduler is the main entry point of instantiating a new Gardener Scheduler.

func (*GardenerScheduler) Run

func (g *GardenerScheduler) Run(ctx context.Context) error

Run runs the Gardener Scheduler. This should never exit.

type Options

type Options struct {
	// ConfigFile is the location of the GardenerScheduler's configuration file.
	ConfigFile string
	// contains filtered or unexported fields
}

Options has all the context and parameters needed to run a GardenerScheduler.

func (*Options) AddFlags

func (o *Options) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags for a specific Scheduler to the specified FlagSet.

Jump to

Keyboard shortcuts

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