options

package
v0.4.1-0...-6a09f1e Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericComponentOptions

type GenericComponentOptions struct {
	MinResyncPeriod         metav1.Duration
	ContentType             string
	KubeAPIQPS              float32
	KubeAPIBurst            int32
	ControllerStartInterval metav1.Duration
	LeaderElection          componentbaseconfig.LeaderElectionConfiguration
}

GenericComponentOptions holds the options which are generic.

func NewGenericComponentOptions

func NewGenericComponentOptions(cfg config.GenericComponentConfiguration) *GenericComponentOptions

NewGenericComponentOptions returns generic configuration default values.

func (*GenericComponentOptions) AddFlags

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

AddFlags adds flags related to generic for controller manager to the specified FlagSet.

func (*GenericComponentOptions) ApplyTo

ApplyTo fills up generic config with options.

func (*GenericComponentOptions) Validate

func (o *GenericComponentOptions) Validate() []error

Validate checks validation of GenericComponentOptions.

Jump to

Keyboard shortcuts

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