app

package
v1.31.3 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 56 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommandStartGardenlet

func NewCommandStartGardenlet() *cobra.Command

NewCommandStartGardenlet creates a *cobra.Command object with default parameters

Types

type Gardenlet

type Gardenlet struct {
	Config                *config.GardenletConfiguration
	Identity              *gardencorev1beta1.Gardener
	GardenClusterIdentity string
	ClientMap             clientmap.ClientMap
	Logger                *logrus.Logger
	Recorder              record.EventRecorder
	LeaderElection        *leaderelection.LeaderElectionConfig
	HealthManager         healthz.Manager
	CertificateManager    *certificate.Manager
}

Gardenlet represents all the parameters required to start the Gardenlet.

func NewGardenlet

func NewGardenlet(ctx context.Context, cfg *config.GardenletConfiguration) (*Gardenlet, error)

NewGardenlet is the main entry point of instantiating a new Gardenlet.

func (*Gardenlet) Run

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

Run runs the Gardenlet. This should never exit.

type Options

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

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

func NewOptions

func NewOptions() (*Options, error)

NewOptions returns a new Options object.

func (*Options) AddFlags

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

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

Jump to

Keyboard shortcuts

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