options

package
v0.0.0-...-f60eec5 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultComponentConfig

func NewDefaultComponentConfig() (kubectrlmgrconfig.KubeControllerManagerConfiguration, error)

NewDefaultComponentConfig returns kube-controller manager configuration object.

Types

type CSRSigningControllerOptions

type CSRSigningControllerOptions struct {
	*csrsigningconfig.CSRSigningControllerConfiguration
}

CSRSigningControllerOptions holds the CSRSigningController options.

func (*CSRSigningControllerOptions) AddFlags

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

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

func (*CSRSigningControllerOptions) ApplyTo

ApplyTo fills up CSRSigningController config with options.

func (*CSRSigningControllerOptions) Validate

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

Validate checks validation of CSRSigningControllerOptions.

type GarbageCollectorControllerOptions

type GarbageCollectorControllerOptions struct {
	*garbagecollectorconfig.GarbageCollectorControllerConfiguration
}

GarbageCollectorControllerOptions holds the GarbageCollectorController options.

func (*GarbageCollectorControllerOptions) AddFlags

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

func (*GarbageCollectorControllerOptions) ApplyTo

ApplyTo fills up GarbageCollectorController config with options.

func (*GarbageCollectorControllerOptions) Validate

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

Validate checks validation of GarbageCollectorController.

type KubeControllerManagerOptions

type KubeControllerManagerOptions struct {
	Generic *cmoptions.GenericControllerManagerConfigurationOptions

	CSRSigningController       *CSRSigningControllerOptions
	GarbageCollectorController *GarbageCollectorControllerOptions
	NamespaceController        *NamespaceControllerOptions

	Metrics *metrics.Options
	Logs    *logs.Options

	ShowHiddenMetricsForVersion string
}

KubeControllerManagerOptions is the main context object for the kube-controller manager.

func NewKubeControllerManagerOptions

func NewKubeControllerManagerOptions() (*KubeControllerManagerOptions, error)

NewKubeControllerManagerOptions creates a new KubeControllerManagerOptions with a default config.

func (*KubeControllerManagerOptions) ApplyTo

ApplyTo fills up controller manager config with options.

func (KubeControllerManagerOptions) Config

Config return a controller manager config objective

func (*KubeControllerManagerOptions) Flags

Flags returns flags for a specific APIServer by section name

func (*KubeControllerManagerOptions) Validate

func (s *KubeControllerManagerOptions) Validate() error

Validate is used to validate the options and config before launching the controller manager

type NamespaceControllerOptions

type NamespaceControllerOptions struct {
	*namespaceconfig.NamespaceControllerConfiguration
}

NamespaceControllerOptions holds the NamespaceController options.

func (*NamespaceControllerOptions) AddFlags

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

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

func (*NamespaceControllerOptions) ApplyTo

ApplyTo fills up NamespaceController config with options.

func (*NamespaceControllerOptions) Validate

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

Validate checks validation of NamespaceControllerOptions.

Jump to

Keyboard shortcuts

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