const ( // KubeControllerManagerUserAgent is the userAgent name when starting kube-controller managers. KubeControllerManagerUserAgent = "kube-controller-manager" )
func NewDefaultComponentConfig() (kubectrlmgrconfig.KubeControllerManagerConfiguration, error)
NewDefaultComponentConfig returns kube-controller manager configuration object.
AttachDetachControllerOptions holds the AttachDetachController options.
type AttachDetachControllerOptions struct { *attachdetachconfig.AttachDetachControllerConfiguration }
func (o *AttachDetachControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to AttachDetachController for controller manager to the specified FlagSet.
func (o *AttachDetachControllerOptions) ApplyTo(cfg *attachdetachconfig.AttachDetachControllerConfiguration) error
ApplyTo fills up AttachDetachController config with options.
func (o *AttachDetachControllerOptions) Validate() []error
Validate checks validation of AttachDetachControllerOptions.
CSRSigningControllerOptions holds the CSRSigningController options.
type CSRSigningControllerOptions struct { *csrsigningconfig.CSRSigningControllerConfiguration }
func (o *CSRSigningControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to CSRSigningController for controller manager to the specified FlagSet.
func (o *CSRSigningControllerOptions) ApplyTo(cfg *csrsigningconfig.CSRSigningControllerConfiguration) error
ApplyTo fills up CSRSigningController config with options.
func (o *CSRSigningControllerOptions) Validate() []error
Validate checks validation of CSRSigningControllerOptions.
CronJobControllerOptions holds the CronJobController options.
type CronJobControllerOptions struct { *cronjobconfig.CronJobControllerConfiguration }
func (o *CronJobControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to JobController for controller manager to the specified FlagSet.
func (o *CronJobControllerOptions) ApplyTo(cfg *cronjobconfig.CronJobControllerConfiguration) error
ApplyTo fills up JobController config with options.
func (o *CronJobControllerOptions) Validate() []error
Validate checks validation of CronJobControllerOptions.
DaemonSetControllerOptions holds the DaemonSetController options.
type DaemonSetControllerOptions struct { *daemonconfig.DaemonSetControllerConfiguration }
func (o *DaemonSetControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to DaemonSetController for controller manager to the specified FlagSet.
func (o *DaemonSetControllerOptions) ApplyTo(cfg *daemonconfig.DaemonSetControllerConfiguration) error
ApplyTo fills up DaemonSetController config with options.
func (o *DaemonSetControllerOptions) Validate() []error
Validate checks validation of DaemonSetControllerOptions.
DeploymentControllerOptions holds the DeploymentController options.
type DeploymentControllerOptions struct { *deploymentconfig.DeploymentControllerConfiguration }
func (o *DeploymentControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to DeploymentController for controller manager to the specified FlagSet.
func (o *DeploymentControllerOptions) ApplyTo(cfg *deploymentconfig.DeploymentControllerConfiguration) error
ApplyTo fills up DeploymentController config with options.
func (o *DeploymentControllerOptions) Validate() []error
Validate checks validation of DeploymentControllerOptions.
DeprecatedControllerOptions holds the DeprecatedController options, those option are deprecated. TODO remove these fields once the deprecated flags are removed.
type DeprecatedControllerOptions struct { *kubectrlmgrconfig.DeprecatedControllerConfiguration }
func (o *DeprecatedControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to DeprecatedController for controller manager to the specified FlagSet.
func (o *DeprecatedControllerOptions) ApplyTo(cfg *kubectrlmgrconfig.DeprecatedControllerConfiguration) error
ApplyTo fills up DeprecatedController config with options.
func (o *DeprecatedControllerOptions) Validate() []error
Validate checks validation of DeprecatedControllerOptions.
EndpointControllerOptions holds the EndPointController options.
type EndpointControllerOptions struct { *endpointconfig.EndpointControllerConfiguration }
func (o *EndpointControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to EndPointController for controller manager to the specified FlagSet.
func (o *EndpointControllerOptions) ApplyTo(cfg *endpointconfig.EndpointControllerConfiguration) error
ApplyTo fills up EndPointController config with options.
func (o *EndpointControllerOptions) Validate() []error
Validate checks validation of EndpointControllerOptions.
EndpointSliceControllerOptions holds the EndpointSliceController options.
type EndpointSliceControllerOptions struct { *endpointsliceconfig.EndpointSliceControllerConfiguration }
func (o *EndpointSliceControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to EndpointSliceController for controller manager to the specified FlagSet.
func (o *EndpointSliceControllerOptions) ApplyTo(cfg *endpointsliceconfig.EndpointSliceControllerConfiguration) error
ApplyTo fills up EndpointSliceController config with options.
func (o *EndpointSliceControllerOptions) Validate() []error
Validate checks validation of EndpointSliceControllerOptions.
EndpointSliceMirroringControllerOptions holds the EndpointSliceMirroringController options.
type EndpointSliceMirroringControllerOptions struct { *endpointslicemirroringconfig.EndpointSliceMirroringControllerConfiguration }
func (o *EndpointSliceMirroringControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to EndpointSliceMirroringController for controller manager to the specified FlagSet.
func (o *EndpointSliceMirroringControllerOptions) ApplyTo(cfg *endpointslicemirroringconfig.EndpointSliceMirroringControllerConfiguration) error
ApplyTo fills up EndpointSliceMirroringController config with options.
func (o *EndpointSliceMirroringControllerOptions) Validate() []error
Validate checks validation of EndpointSliceMirroringControllerOptions.
EphemeralVolumeControllerOptions holds the EphemeralVolumeController options.
type EphemeralVolumeControllerOptions struct { *ephemeralvolumeconfig.EphemeralVolumeControllerConfiguration }
func (o *EphemeralVolumeControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to EphemeralVolumeController for controller manager to the specified FlagSet.
func (o *EphemeralVolumeControllerOptions) ApplyTo(cfg *ephemeralvolumeconfig.EphemeralVolumeControllerConfiguration) error
ApplyTo fills up EphemeralVolumeController config with options.
func (o *EphemeralVolumeControllerOptions) Validate() []error
Validate checks validation of EphemeralVolumeControllerOptions.
GarbageCollectorControllerOptions holds the GarbageCollectorController options.
type GarbageCollectorControllerOptions struct { *garbagecollectorconfig.GarbageCollectorControllerConfiguration }
func (o *GarbageCollectorControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to GarbageCollectorController for controller manager to the specified FlagSet.
func (o *GarbageCollectorControllerOptions) ApplyTo(cfg *garbagecollectorconfig.GarbageCollectorControllerConfiguration) error
ApplyTo fills up GarbageCollectorController config with options.
func (o *GarbageCollectorControllerOptions) Validate() []error
Validate checks validation of GarbageCollectorController.
HPAControllerOptions holds the HPAController options.
type HPAControllerOptions struct { *poautosclerconfig.HPAControllerConfiguration }
func (o *HPAControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to HPAController for controller manager to the specified FlagSet.
func (o *HPAControllerOptions) ApplyTo(cfg *poautosclerconfig.HPAControllerConfiguration) error
ApplyTo fills up HPAController config with options.
func (o *HPAControllerOptions) Validate() []error
Validate checks validation of HPAControllerOptions.
JobControllerOptions holds the JobController options.
type JobControllerOptions struct { *jobconfig.JobControllerConfiguration }
func (o *JobControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to JobController for controller manager to the specified FlagSet.
func (o *JobControllerOptions) ApplyTo(cfg *jobconfig.JobControllerConfiguration) error
ApplyTo fills up JobController config with options.
func (o *JobControllerOptions) Validate() []error
Validate checks validation of JobControllerOptions.
KubeControllerManagerOptions is the main context object for the kube-controller manager.
type KubeControllerManagerOptions struct { Generic *cmoptions.GenericControllerManagerConfigurationOptions KubeCloudShared *cpoptions.KubeCloudSharedOptions ServiceController *cpoptions.ServiceControllerOptions AttachDetachController *AttachDetachControllerOptions CSRSigningController *CSRSigningControllerOptions DaemonSetController *DaemonSetControllerOptions DeploymentController *DeploymentControllerOptions StatefulSetController *StatefulSetControllerOptions DeprecatedFlags *DeprecatedControllerOptions EndpointController *EndpointControllerOptions EndpointSliceController *EndpointSliceControllerOptions EndpointSliceMirroringController *EndpointSliceMirroringControllerOptions EphemeralVolumeController *EphemeralVolumeControllerOptions GarbageCollectorController *GarbageCollectorControllerOptions HPAController *HPAControllerOptions JobController *JobControllerOptions CronJobController *CronJobControllerOptions LegacySATokenCleaner *LegacySATokenCleanerOptions NamespaceController *NamespaceControllerOptions NodeIPAMController *NodeIPAMControllerOptions NodeLifecycleController *NodeLifecycleControllerOptions PersistentVolumeBinderController *PersistentVolumeBinderControllerOptions PodGCController *PodGCControllerOptions ReplicaSetController *ReplicaSetControllerOptions ReplicationController *ReplicationControllerOptions ResourceQuotaController *ResourceQuotaControllerOptions SAController *SAControllerOptions TTLAfterFinishedController *TTLAfterFinishedControllerOptions ValidatingAdmissionPolicyStatusController *ValidatingAdmissionPolicyStatusControllerOptions SecureServing *apiserveroptions.SecureServingOptionsWithLoopback Authentication *apiserveroptions.DelegatingAuthenticationOptions Authorization *apiserveroptions.DelegatingAuthorizationOptions Metrics *metrics.Options Logs *logs.Options Master string ShowHiddenMetricsForVersion string }
func NewKubeControllerManagerOptions() (*KubeControllerManagerOptions, error)
NewKubeControllerManagerOptions creates a new KubeControllerManagerOptions with a default config.
func (s *KubeControllerManagerOptions) ApplyTo(c *kubecontrollerconfig.Config, allControllers []string, disabledByDefaultControllers []string, controllerAliases map[string]string) error
ApplyTo fills up controller manager config with options.
func (s KubeControllerManagerOptions) Config(allControllers []string, disabledByDefaultControllers []string, controllerAliases map[string]string) (*kubecontrollerconfig.Config, error)
Config return a controller manager config objective
func (s *KubeControllerManagerOptions) Flags(allControllers []string, disabledByDefaultControllers []string, controllerAliases map[string]string) cliflag.NamedFlagSets
Flags returns flags for a specific KubeController by section name
func (s *KubeControllerManagerOptions) Validate(allControllers []string, disabledByDefaultControllers []string, controllerAliases map[string]string) error
Validate is used to validate the options and config before launching the controller manager
LegacySATokenCleanerOptions holds the LegacySATokenCleaner options.
type LegacySATokenCleanerOptions struct { *serviceaccountconfig.LegacySATokenCleanerConfiguration }
func (o *LegacySATokenCleanerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to LegacySATokenCleaner for controller manager to the specified FlagSet
func (o *LegacySATokenCleanerOptions) ApplyTo(cfg *serviceaccountconfig.LegacySATokenCleanerConfiguration) error
ApplyTo fills up LegacySATokenCleaner config with options.
func (o *LegacySATokenCleanerOptions) Validate() []error
Validate checks validation of LegacySATokenCleanerOptions.
NamespaceControllerOptions holds the NamespaceController options.
type NamespaceControllerOptions struct { *namespaceconfig.NamespaceControllerConfiguration }
func (o *NamespaceControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to NamespaceController for controller manager to the specified FlagSet.
func (o *NamespaceControllerOptions) ApplyTo(cfg *namespaceconfig.NamespaceControllerConfiguration) error
ApplyTo fills up NamespaceController config with options.
func (o *NamespaceControllerOptions) Validate() []error
Validate checks validation of NamespaceControllerOptions.
NodeIPAMControllerOptions holds the NodeIpamController options.
type NodeIPAMControllerOptions struct { *nodeipamconfig.NodeIPAMControllerConfiguration }
func (o *NodeIPAMControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to NodeIpamController for controller manager to the specified FlagSet.
func (o *NodeIPAMControllerOptions) ApplyTo(cfg *nodeipamconfig.NodeIPAMControllerConfiguration) error
ApplyTo fills up NodeIpamController config with options.
func (o *NodeIPAMControllerOptions) Validate() []error
Validate checks validation of NodeIPAMControllerOptions.
NodeLifecycleControllerOptions holds the NodeLifecycleController options.
type NodeLifecycleControllerOptions struct { *nodelifecycleconfig.NodeLifecycleControllerConfiguration }
func (o *NodeLifecycleControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to NodeLifecycleController for controller manager to the specified FlagSet.
func (o *NodeLifecycleControllerOptions) ApplyTo(cfg *nodelifecycleconfig.NodeLifecycleControllerConfiguration) error
ApplyTo fills up NodeLifecycleController config with options.
func (o *NodeLifecycleControllerOptions) Validate() []error
Validate checks validation of NodeLifecycleControllerOptions.
PersistentVolumeBinderControllerOptions holds the PersistentVolumeBinderController options.
type PersistentVolumeBinderControllerOptions struct { *persistentvolumeconfig.PersistentVolumeBinderControllerConfiguration }
func (o *PersistentVolumeBinderControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to PersistentVolumeBinderController for controller manager to the specified FlagSet.
func (o *PersistentVolumeBinderControllerOptions) ApplyTo(cfg *persistentvolumeconfig.PersistentVolumeBinderControllerConfiguration) error
ApplyTo fills up PersistentVolumeBinderController config with options.
func (o *PersistentVolumeBinderControllerOptions) Validate() []error
Validate checks validation of PersistentVolumeBinderControllerOptions.
PodGCControllerOptions holds the PodGCController options.
type PodGCControllerOptions struct { *podgcconfig.PodGCControllerConfiguration }
func (o *PodGCControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to PodGCController for controller manager to the specified FlagSet.
func (o *PodGCControllerOptions) ApplyTo(cfg *podgcconfig.PodGCControllerConfiguration) error
ApplyTo fills up PodGCController config with options.
func (o *PodGCControllerOptions) Validate() []error
Validate checks validation of PodGCControllerOptions.
ReplicaSetControllerOptions holds the ReplicaSetController options.
type ReplicaSetControllerOptions struct { *replicasetconfig.ReplicaSetControllerConfiguration }
func (o *ReplicaSetControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to ReplicaSetController for controller manager to the specified FlagSet.
func (o *ReplicaSetControllerOptions) ApplyTo(cfg *replicasetconfig.ReplicaSetControllerConfiguration) error
ApplyTo fills up ReplicaSetController config with options.
func (o *ReplicaSetControllerOptions) Validate() []error
Validate checks validation of ReplicaSetControllerOptions.
ReplicationControllerOptions holds the ReplicationController options.
type ReplicationControllerOptions struct { *replicationconfig.ReplicationControllerConfiguration }
func (o *ReplicationControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to ReplicationController for controller manager to the specified FlagSet.
func (o *ReplicationControllerOptions) ApplyTo(cfg *replicationconfig.ReplicationControllerConfiguration) error
ApplyTo fills up ReplicationController config with options.
func (o *ReplicationControllerOptions) Validate() []error
Validate checks validation of ReplicationControllerOptions.
ResourceQuotaControllerOptions holds the ResourceQuotaController options.
type ResourceQuotaControllerOptions struct { *resourcequotaconfig.ResourceQuotaControllerConfiguration }
func (o *ResourceQuotaControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to ResourceQuotaController for controller manager to the specified FlagSet.
func (o *ResourceQuotaControllerOptions) ApplyTo(cfg *resourcequotaconfig.ResourceQuotaControllerConfiguration) error
ApplyTo fills up ResourceQuotaController config with options.
func (o *ResourceQuotaControllerOptions) Validate() []error
Validate checks validation of ResourceQuotaControllerOptions.
SAControllerOptions holds the ServiceAccountController options.
type SAControllerOptions struct { *serviceaccountconfig.SAControllerConfiguration }
func (o *SAControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to ServiceAccountController for controller manager to the specified FlagSet
func (o *SAControllerOptions) ApplyTo(cfg *serviceaccountconfig.SAControllerConfiguration) error
ApplyTo fills up ServiceAccountController config with options.
func (o *SAControllerOptions) Validate() []error
Validate checks validation of ServiceAccountControllerOptions.
StatefulSetControllerOptions holds the StatefulSetController options.
type StatefulSetControllerOptions struct { *statefulsetconfig.StatefulSetControllerConfiguration }
func (o *StatefulSetControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to StatefulSetController for controller manager to the specified FlagSet.
func (o *StatefulSetControllerOptions) ApplyTo(cfg *statefulsetconfig.StatefulSetControllerConfiguration) error
ApplyTo fills up StatefulSetController config with options.
func (o *StatefulSetControllerOptions) Validate() []error
Validate checks validation of StatefulSetControllerOptions.
TTLAfterFinishedControllerOptions holds the TTLAfterFinishedController options.
type TTLAfterFinishedControllerOptions struct { *ttlafterfinishedconfig.TTLAfterFinishedControllerConfiguration }
func (o *TTLAfterFinishedControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to TTLAfterFinishedController for controller manager to the specified FlagSet.
func (o *TTLAfterFinishedControllerOptions) ApplyTo(cfg *ttlafterfinishedconfig.TTLAfterFinishedControllerConfiguration) error
ApplyTo fills up TTLAfterFinishedController config with options.
func (o *TTLAfterFinishedControllerOptions) Validate() []error
Validate checks validation of TTLAfterFinishedControllerOptions.
ValidatingAdmissionPolicyStatusControllerOptions holds the ValidatingAdmissionPolicyStatusController options.
type ValidatingAdmissionPolicyStatusControllerOptions struct { *validatingadmissionpolicystatusconfig.ValidatingAdmissionPolicyStatusControllerConfiguration }
func (o *ValidatingAdmissionPolicyStatusControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to ValidatingAdmissionPolicyStatusController for controller manager to the specified FlagSet.
func (o *ValidatingAdmissionPolicyStatusControllerOptions) ApplyTo(cfg *validatingadmissionpolicystatusconfig.ValidatingAdmissionPolicyStatusControllerConfiguration) error
ApplyTo fills up ValidatingAdmissionPolicyStatusController config with options.
func (o *ValidatingAdmissionPolicyStatusControllerOptions) Validate() []error
Validate checks validation of ValidatingAdmissionPolicyStatusControllerOptions.