app

package
v0.0.0-...-133fb1b Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2018 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(options *Options, fs *pflag.FlagSet)

AddFlags adds flags for a specific Garden controller manager to the specified FlagSet.

func NewCommandStartGardenControllerManager

func NewCommandStartGardenControllerManager() *cobra.Command

NewCommandStartGardenControllerManager creates a *cobra.Command object with default parameters

Types

type Gardener

type Gardener struct {
	Config            *componentconfig.ControllerManagerConfiguration
	Identity          *gardenv1beta1.Gardener
	GardenerNamespace string
	K8sGardenClient   kubernetes.Client
	Logger            *logrus.Logger
	RunningInCluster  bool
	Recorder          record.EventRecorder
	LeaderElection    *leaderelection.LeaderElectionConfig
}

Gardener represents all the parameters required to start the Garden controller manager.

func NewGardener

NewGardener is the main entry point of instantiating a new Garden controller manager.

func (*Gardener) Run

func (g *Gardener) Run(stopCh chan struct{}) error

Run runs the Gardener. This should never exit.

type Options

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

Options has all the context and parameters needed to run a Garden controller manager.

func NewOptions

func NewOptions() (*Options, error)

NewOptions returns a new Options object.

Jump to

Keyboard shortcuts

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