app

package
v1.27.4 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 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() *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
	ClientMap         clientmap.ClientMap
	Logger            *logrus.Logger
	Recorder          record.EventRecorder
	LeaderElection    *leaderelection.LeaderElectionConfig
}

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

func NewGardenerScheduler

func NewGardenerScheduler(ctx context.Context, 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