app

package
v1.7.1-0...-23dd39d Latest Latest
Warning

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

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

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
}

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

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

AddFlags adds all flags to the given FlagSet.

func (*Options) ApplyTo

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

ApplyTo applies the options to the given config.

func (*Options) Run

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

Run runs gardener-apiserver with the given Options.

func (*Options) Validate

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