app

package
v1.52.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 54 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommandStartGardenerAPIServer

func NewCommandStartGardenerAPIServer() *cobra.Command

NewCommandStartGardenerAPIServer creates a *cobra.Command object with default parameters.

Types

type Options

type Options struct {
	Recommended                   *genericoptions.RecommendedOptions
	ServerRunOptions              *genericoptions.ServerRunOptions
	ExtraOptions                  *apiserver.ExtraOptions
	CoreInformerFactory           gardencoreinformers.SharedInformerFactory
	ExternalCoreInformerFactory   gardenexternalcoreinformers.SharedInformerFactory
	KubeInformerFactory           kubeinformers.SharedInformerFactory
	SeedManagementInformerFactory seedmanagementinformer.SharedInformerFactory
	SettingsInformerFactory       settingsinformer.SharedInformerFactory

	Logs *logs.Options
}

Options has all the context and parameters needed to run a Gardener API server.

func NewOptions

func NewOptions() *Options

NewOptions returns a new Options object.

func (*Options) AddFlags added in v1.20.0

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

AddFlags adds all flags to the given FlagSet.

func (*Options) ApplyTo added in v0.33.0

func (o *Options) ApplyTo(config *apiserver.Config) error

ApplyTo applies the options to the given config.

func (*Options) Run added in v1.20.0

func (o *Options) Run(ctx context.Context) error

Run runs gardener-apiserver with the given Options.

func (*Options) Validate added in v1.20.0

func (o *Options) Validate() error

Validate validates all the required options.

Jump to

Keyboard shortcuts

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