options

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Copyright Contributors to the Open Cluster Management project

Copyright Contributors to the Open Cluster Management project

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
	SAController               *SAControllerOptions

	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.

type SAControllerOptions added in v0.2.0

type SAControllerOptions struct {
	*serviceaccountconfig.SAControllerConfiguration
}

SAControllerOptions holds the ServiceAccountController options.

func (*SAControllerOptions) AddFlags added in v0.2.0

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

AddFlags adds flags related to ServiceAccountController for controller manager to the specified FlagSet

func (*SAControllerOptions) ApplyTo added in v0.2.0

ApplyTo fills up ServiceAccountController config with options.

func (*SAControllerOptions) Validate added in v0.2.0

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

Validate checks validation of ServiceAccountControllerOptions.

Jump to

Keyboard shortcuts

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