app

package
v0.0.0-...-1764fb8 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 31 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               *gardenv1beta1.Gardener
	GardenerNamespace      string
	K8sGardenClient        kubernetes.Interface
	K8sGardenInformers     gardeninformers.SharedInformerFactory
	K8sGardenCoreInformers gardencoreinformers.SharedInformerFactory
	KubeInformerFactory    informers.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