options

package
v1.14.10 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package options provides the flags used for the controller manager.

Index

Constants

View Source
const (

	// DefaultClusterSigningCertFile is deprecated. Do not use.
	DefaultClusterSigningCertFile = "/etc/kubernetes/ca/ca.pem"
	// DefaultClusterSigningKeyFile is deprecated. Do not use.
	DefaultClusterSigningKeyFile = "/etc/kubernetes/ca/ca.key"
)
View Source
const (
	// KubeControllerManagerUserAgent is the userAgent name when starting kube-controller managers.
	KubeControllerManagerUserAgent = "kube-controller-manager"
)

Variables

This section is empty.

Functions

func NewDefaultComponentConfig added in v1.11.0

func NewDefaultComponentConfig(insecurePort int32) (kubectrlmgrconfig.KubeControllerManagerConfiguration, error)

NewDefaultComponentConfig returns kube-controller manager configuration object.

Types

type AttachDetachControllerOptions added in v1.12.0

type AttachDetachControllerOptions struct {
	*kubectrlmgrconfig.AttachDetachControllerConfiguration
}

AttachDetachControllerOptions holds the AttachDetachController options.

func (*AttachDetachControllerOptions) AddFlags added in v1.12.0

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

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

func (*AttachDetachControllerOptions) ApplyTo added in v1.12.0

ApplyTo fills up AttachDetachController config with options.

func (*AttachDetachControllerOptions) Validate added in v1.12.0

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

Validate checks validation of AttachDetachControllerOptions.

type CSRSigningControllerOptions added in v1.12.0

type CSRSigningControllerOptions struct {
	*kubectrlmgrconfig.CSRSigningControllerConfiguration
}

CSRSigningControllerOptions holds the CSRSigningController options.

func (*CSRSigningControllerOptions) AddFlags added in v1.12.0

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

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

func (*CSRSigningControllerOptions) ApplyTo added in v1.12.0

ApplyTo fills up CSRSigningController config with options.

func (*CSRSigningControllerOptions) Validate added in v1.12.0

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

Validate checks validation of CSRSigningControllerOptions.

type DaemonSetControllerOptions added in v1.12.0

type DaemonSetControllerOptions struct {
	*kubectrlmgrconfig.DaemonSetControllerConfiguration
}

DaemonSetControllerOptions holds the DaemonSetController options.

func (*DaemonSetControllerOptions) AddFlags added in v1.12.0

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

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

func (*DaemonSetControllerOptions) ApplyTo added in v1.12.0

ApplyTo fills up DaemonSetController config with options.

func (*DaemonSetControllerOptions) Validate added in v1.12.0

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

Validate checks validation of DaemonSetControllerOptions.

type DeploymentControllerOptions added in v1.12.0

type DeploymentControllerOptions struct {
	*kubectrlmgrconfig.DeploymentControllerConfiguration
}

DeploymentControllerOptions holds the DeploymentController options.

func (*DeploymentControllerOptions) AddFlags added in v1.12.0

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

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

func (*DeploymentControllerOptions) ApplyTo added in v1.12.0

ApplyTo fills up DeploymentController config with options.

func (*DeploymentControllerOptions) Validate added in v1.12.0

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

Validate checks validation of DeploymentControllerOptions.

type DeprecatedControllerOptions added in v1.12.0

type DeprecatedControllerOptions struct {
	*kubectrlmgrconfig.DeprecatedControllerConfiguration
}

DeprecatedControllerOptions holds the DeprecatedController options, those option are deprecated. TODO remove these fields once the deprecated flags are removed.

func (*DeprecatedControllerOptions) AddFlags added in v1.12.0

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

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

func (*DeprecatedControllerOptions) ApplyTo added in v1.12.0

ApplyTo fills up DeprecatedController config with options.

func (*DeprecatedControllerOptions) Validate added in v1.12.0

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

Validate checks validation of DeprecatedControllerOptions.

type EndpointControllerOptions added in v1.12.0

type EndpointControllerOptions struct {
	*kubectrlmgrconfig.EndpointControllerConfiguration
}

EndpointControllerOptions holds the EndPointController options.

func (*EndpointControllerOptions) AddFlags added in v1.12.0

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

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

func (*EndpointControllerOptions) ApplyTo added in v1.12.0

ApplyTo fills up EndPointController config with options.

func (*EndpointControllerOptions) Validate added in v1.12.0

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

Validate checks validation of EndpointControllerOptions.

type GarbageCollectorControllerOptions added in v1.12.0

type GarbageCollectorControllerOptions struct {
	*kubectrlmgrconfig.GarbageCollectorControllerConfiguration
}

GarbageCollectorControllerOptions holds the GarbageCollectorController options.

func (*GarbageCollectorControllerOptions) AddFlags added in v1.12.0

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

func (*GarbageCollectorControllerOptions) ApplyTo added in v1.12.0

ApplyTo fills up GarbageCollectorController config with options.

func (*GarbageCollectorControllerOptions) Validate added in v1.12.0

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

Validate checks validation of GarbageCollectorController.

type HPAControllerOptions added in v1.12.0

type HPAControllerOptions struct {
	*kubectrlmgrconfig.HPAControllerConfiguration
}

HPAControllerOptions holds the HPAController options.

func (*HPAControllerOptions) AddFlags added in v1.12.0

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

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

func (*HPAControllerOptions) ApplyTo added in v1.12.0

ApplyTo fills up HPAController config with options.

func (*HPAControllerOptions) Validate added in v1.12.0

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

Validate checks validation of HPAControllerOptions.

type JobControllerOptions added in v1.12.0

type JobControllerOptions struct {
	*kubectrlmgrconfig.JobControllerConfiguration
}

JobControllerOptions holds the JobController options.

func (*JobControllerOptions) AddFlags added in v1.12.0

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

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

func (*JobControllerOptions) ApplyTo added in v1.12.0

ApplyTo fills up JobController config with options.

func (*JobControllerOptions) Validate added in v1.12.0

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

Validate checks validation of JobControllerOptions.

type KubeControllerManagerOptions added in v1.10.0

type KubeControllerManagerOptions struct {
	Generic           *cmoptions.GenericControllerManagerConfigurationOptions
	KubeCloudShared   *cmoptions.KubeCloudSharedOptions
	ServiceController *cmoptions.ServiceControllerOptions

	AttachDetachController           *AttachDetachControllerOptions
	CSRSigningController             *CSRSigningControllerOptions
	DaemonSetController              *DaemonSetControllerOptions
	DeploymentController             *DeploymentControllerOptions
	DeprecatedFlags                  *DeprecatedControllerOptions
	EndpointController               *EndpointControllerOptions
	GarbageCollectorController       *GarbageCollectorControllerOptions
	HPAController                    *HPAControllerOptions
	JobController                    *JobControllerOptions
	NamespaceController              *NamespaceControllerOptions
	NodeIPAMController               *NodeIPAMControllerOptions
	NodeLifecycleController          *NodeLifecycleControllerOptions
	PersistentVolumeBinderController *PersistentVolumeBinderControllerOptions
	PodGCController                  *PodGCControllerOptions
	ReplicaSetController             *ReplicaSetControllerOptions
	ReplicationController            *ReplicationControllerOptions
	ResourceQuotaController          *ResourceQuotaControllerOptions
	SAController                     *SAControllerOptions
	TTLAfterFinishedController       *TTLAfterFinishedControllerOptions

	SecureServing *apiserveroptions.SecureServingOptionsWithLoopback
	// TODO: remove insecure serving mode
	InsecureServing *apiserveroptions.DeprecatedInsecureServingOptionsWithLoopback
	Authentication  *apiserveroptions.DelegatingAuthenticationOptions
	Authorization   *apiserveroptions.DelegatingAuthorizationOptions

	Master     string
	Kubeconfig string
}

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

func NewKubeControllerManagerOptions added in v1.10.0

func NewKubeControllerManagerOptions() (*KubeControllerManagerOptions, error)

NewKubeControllerManagerOptions creates a new KubeControllerManagerOptions with a default config.

func (*KubeControllerManagerOptions) ApplyTo added in v1.10.0

ApplyTo fills up controller manager config with options.

func (KubeControllerManagerOptions) Config added in v1.10.0

func (s KubeControllerManagerOptions) Config(allControllers []string, disabledByDefaultControllers []string) (*kubecontrollerconfig.Config, error)

Config return a controller manager config objective

func (*KubeControllerManagerOptions) Flags added in v1.12.0

func (s *KubeControllerManagerOptions) Flags(allControllers []string, disabledByDefaultControllers []string) cliflag.NamedFlagSets

Flags returns flags for a specific APIServer by section name

func (*KubeControllerManagerOptions) Validate added in v1.10.0

func (s *KubeControllerManagerOptions) Validate(allControllers []string, disabledByDefaultControllers []string) error

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

type NamespaceControllerOptions added in v1.12.0

type NamespaceControllerOptions struct {
	*kubectrlmgrconfig.NamespaceControllerConfiguration
}

NamespaceControllerOptions holds the NamespaceController options.

func (*NamespaceControllerOptions) AddFlags added in v1.12.0

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

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

func (*NamespaceControllerOptions) ApplyTo added in v1.12.0

ApplyTo fills up NamespaceController config with options.

func (*NamespaceControllerOptions) Validate added in v1.12.0

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

Validate checks validation of NamespaceControllerOptions.

type NodeIPAMControllerOptions added in v1.12.0

type NodeIPAMControllerOptions struct {
	*kubectrlmgrconfig.NodeIPAMControllerConfiguration
}

NodeIPAMControllerOptions holds the NodeIpamController options.

func (*NodeIPAMControllerOptions) AddFlags added in v1.12.0

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

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

func (*NodeIPAMControllerOptions) ApplyTo added in v1.12.0

ApplyTo fills up NodeIpamController config with options.

func (*NodeIPAMControllerOptions) Validate added in v1.12.0

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

Validate checks validation of NodeIPAMControllerOptions.

type NodeLifecycleControllerOptions added in v1.12.0

type NodeLifecycleControllerOptions struct {
	*kubectrlmgrconfig.NodeLifecycleControllerConfiguration
}

NodeLifecycleControllerOptions holds the NodeLifecycleController options.

func (*NodeLifecycleControllerOptions) AddFlags added in v1.12.0

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

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

func (*NodeLifecycleControllerOptions) ApplyTo added in v1.12.0

ApplyTo fills up NodeLifecycleController config with options.

func (*NodeLifecycleControllerOptions) Validate added in v1.12.0

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

Validate checks validation of NodeLifecycleControllerOptions.

type PersistentVolumeBinderControllerOptions added in v1.12.0

type PersistentVolumeBinderControllerOptions struct {
	*kubectrlmgrconfig.PersistentVolumeBinderControllerConfiguration
}

PersistentVolumeBinderControllerOptions holds the PersistentVolumeBinderController options.

func (*PersistentVolumeBinderControllerOptions) AddFlags added in v1.12.0

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

func (*PersistentVolumeBinderControllerOptions) ApplyTo added in v1.12.0

ApplyTo fills up PersistentVolumeBinderController config with options.

func (*PersistentVolumeBinderControllerOptions) Validate added in v1.12.0

Validate checks validation of PersistentVolumeBinderControllerOptions.

type PodGCControllerOptions added in v1.12.0

type PodGCControllerOptions struct {
	*kubectrlmgrconfig.PodGCControllerConfiguration
}

PodGCControllerOptions holds the PodGCController options.

func (*PodGCControllerOptions) AddFlags added in v1.12.0

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

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

func (*PodGCControllerOptions) ApplyTo added in v1.12.0

ApplyTo fills up PodGCController config with options.

func (*PodGCControllerOptions) Validate added in v1.12.0

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

Validate checks validation of PodGCControllerOptions.

type ReplicaSetControllerOptions added in v1.12.0

type ReplicaSetControllerOptions struct {
	*kubectrlmgrconfig.ReplicaSetControllerConfiguration
}

ReplicaSetControllerOptions holds the ReplicaSetController options.

func (*ReplicaSetControllerOptions) AddFlags added in v1.12.0

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

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

func (*ReplicaSetControllerOptions) ApplyTo added in v1.12.0

ApplyTo fills up ReplicaSetController config with options.

func (*ReplicaSetControllerOptions) Validate added in v1.12.0

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

Validate checks validation of ReplicaSetControllerOptions.

type ReplicationControllerOptions added in v1.12.0

type ReplicationControllerOptions struct {
	*kubectrlmgrconfig.ReplicationControllerConfiguration
}

ReplicationControllerOptions holds the ReplicationController options.

func (*ReplicationControllerOptions) AddFlags added in v1.12.0

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

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

func (*ReplicationControllerOptions) ApplyTo added in v1.12.0

ApplyTo fills up ReplicationController config with options.

func (*ReplicationControllerOptions) Validate added in v1.12.0

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

Validate checks validation of ReplicationControllerOptions.

type ResourceQuotaControllerOptions added in v1.12.0

type ResourceQuotaControllerOptions struct {
	*kubectrlmgrconfig.ResourceQuotaControllerConfiguration
}

ResourceQuotaControllerOptions holds the ResourceQuotaController options.

func (*ResourceQuotaControllerOptions) AddFlags added in v1.12.0

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

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

func (*ResourceQuotaControllerOptions) ApplyTo added in v1.12.0

ApplyTo fills up ResourceQuotaController config with options.

func (*ResourceQuotaControllerOptions) Validate added in v1.12.0

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

Validate checks validation of ResourceQuotaControllerOptions.

type SAControllerOptions added in v1.12.0

type SAControllerOptions struct {
	*kubectrlmgrconfig.SAControllerConfiguration
}

SAControllerOptions holds the ServiceAccountController options.

func (*SAControllerOptions) AddFlags added in v1.12.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 v1.12.0

ApplyTo fills up ServiceAccountController config with options.

func (*SAControllerOptions) Validate added in v1.12.0

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

Validate checks validation of ServiceAccountControllerOptions.

type TTLAfterFinishedControllerOptions added in v1.12.0

type TTLAfterFinishedControllerOptions struct {
	*kubectrlmgrconfig.TTLAfterFinishedControllerConfiguration
}

TTLAfterFinishedControllerOptions holds the TTLAfterFinishedController options.

func (*TTLAfterFinishedControllerOptions) AddFlags added in v1.12.0

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

func (*TTLAfterFinishedControllerOptions) ApplyTo added in v1.12.0

ApplyTo fills up TTLAfterFinishedController config with options.

func (*TTLAfterFinishedControllerOptions) Validate added in v1.12.0

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

Validate checks validation of TTLAfterFinishedControllerOptions.

Jump to

Keyboard shortcuts

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