Documentation ¶
Overview ¶
Package options provides the flags used for the controller manager.
Index ¶
- Constants
- func NewDefaultComponentConfig(insecurePort int32) (kubectrlmgrconfig.KubeControllerManagerConfiguration, error)
- type AttachDetachControllerOptions
- type CSRSigningControllerOptions
- type DaemonSetControllerOptions
- type DeploymentControllerOptions
- type DeprecatedControllerOptions
- type EndpointControllerOptions
- type GarbageCollectorControllerOptions
- type HPAControllerOptions
- type JobControllerOptions
- type KubeControllerManagerOptions
- func (s *KubeControllerManagerOptions) ApplyTo(c *kubecontrollerconfig.Config) error
- func (s KubeControllerManagerOptions) Config(allControllers []string, disabledByDefaultControllers []string) (*kubecontrollerconfig.Config, error)
- func (s *KubeControllerManagerOptions) Flags(allControllers []string, disabledByDefaultControllers []string) apiserverflag.NamedFlagSets
- func (s *KubeControllerManagerOptions) Validate(allControllers []string, disabledByDefaultControllers []string) error
- type NamespaceControllerOptions
- type NodeIPAMControllerOptions
- type NodeLifecycleControllerOptions
- type PersistentVolumeBinderControllerOptions
- type PodGCControllerOptions
- type ReplicaSetControllerOptions
- type ReplicationControllerOptions
- type ResourceQuotaControllerOptions
- type SAControllerOptions
- type TTLAfterFinishedControllerOptions
Constants ¶
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" )
const (
// KubeControllerManagerUserAgent is the userAgent name when starting kube-controller managers.
KubeControllerManagerUserAgent = "kube-controller-manager"
)
Variables ¶
This section is empty.
Functions ¶
func NewDefaultComponentConfig ¶
func NewDefaultComponentConfig(insecurePort int32) (kubectrlmgrconfig.KubeControllerManagerConfiguration, error)
NewDefaultComponentConfig returns kube-controller manager configuration object.
Types ¶
type AttachDetachControllerOptions ¶
type AttachDetachControllerOptions struct { ReconcilerSyncLoopPeriod metav1.Duration DisableAttachDetachReconcilerSync bool }
AttachDetachControllerOptions holds the AttachDetachController options.
func (*AttachDetachControllerOptions) AddFlags ¶
func (o *AttachDetachControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to AttachDetachController for controller manager to the specified FlagSet.
func (*AttachDetachControllerOptions) ApplyTo ¶
func (o *AttachDetachControllerOptions) ApplyTo(cfg *kubectrlmgrconfig.AttachDetachControllerConfiguration) error
ApplyTo fills up AttachDetachController config with options.
func (*AttachDetachControllerOptions) Validate ¶
func (o *AttachDetachControllerOptions) Validate() []error
Validate checks validation of AttachDetachControllerOptions.
type CSRSigningControllerOptions ¶
type CSRSigningControllerOptions struct { ClusterSigningDuration metav1.Duration ClusterSigningKeyFile string ClusterSigningCertFile string }
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 ¶
func (o *CSRSigningControllerOptions) ApplyTo(cfg *kubectrlmgrconfig.CSRSigningControllerConfiguration) error
ApplyTo fills up CSRSigningController config with options.
func (*CSRSigningControllerOptions) Validate ¶
func (o *CSRSigningControllerOptions) Validate() []error
Validate checks validation of CSRSigningControllerOptions.
type DaemonSetControllerOptions ¶
type DaemonSetControllerOptions struct {
ConcurrentDaemonSetSyncs int32
}
DaemonSetControllerOptions holds the DaemonSetController options.
func (*DaemonSetControllerOptions) AddFlags ¶
func (o *DaemonSetControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to DaemonSetController for controller manager to the specified FlagSet.
func (*DaemonSetControllerOptions) ApplyTo ¶
func (o *DaemonSetControllerOptions) ApplyTo(cfg *kubectrlmgrconfig.DaemonSetControllerConfiguration) error
ApplyTo fills up DaemonSetController config with options.
func (*DaemonSetControllerOptions) Validate ¶
func (o *DaemonSetControllerOptions) Validate() []error
Validate checks validation of DaemonSetControllerOptions.
type DeploymentControllerOptions ¶
type DeploymentControllerOptions struct { ConcurrentDeploymentSyncs int32 DeploymentControllerSyncPeriod metav1.Duration }
DeploymentControllerOptions holds the DeploymentController options.
func (*DeploymentControllerOptions) AddFlags ¶
func (o *DeploymentControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to DeploymentController for controller manager to the specified FlagSet.
func (*DeploymentControllerOptions) ApplyTo ¶
func (o *DeploymentControllerOptions) ApplyTo(cfg *kubectrlmgrconfig.DeploymentControllerConfiguration) error
ApplyTo fills up DeploymentController config with options.
func (*DeploymentControllerOptions) Validate ¶
func (o *DeploymentControllerOptions) Validate() []error
Validate checks validation of DeploymentControllerOptions.
type DeprecatedControllerOptions ¶
type DeprecatedControllerOptions struct { DeletingPodsQPS float32 DeletingPodsBurst int32 RegisterRetryCount int32 }
DeprecatedControllerOptions holds the DeprecatedController options, those option are deprecated. TODO remove these fields once the deprecated flags are removed.
func (*DeprecatedControllerOptions) AddFlags ¶
func (o *DeprecatedControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to DeprecatedController for controller manager to the specified FlagSet.
func (*DeprecatedControllerOptions) ApplyTo ¶
func (o *DeprecatedControllerOptions) ApplyTo(cfg *kubectrlmgrconfig.DeprecatedControllerConfiguration) error
ApplyTo fills up DeprecatedController config with options.
func (*DeprecatedControllerOptions) Validate ¶
func (o *DeprecatedControllerOptions) Validate() []error
Validate checks validation of DeprecatedControllerOptions.
type EndpointControllerOptions ¶
type EndpointControllerOptions struct {
ConcurrentEndpointSyncs int32
}
EndpointControllerOptions holds the EndPointController options.
func (*EndpointControllerOptions) AddFlags ¶
func (o *EndpointControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to EndPointController for controller manager to the specified FlagSet.
func (*EndpointControllerOptions) ApplyTo ¶
func (o *EndpointControllerOptions) ApplyTo(cfg *kubectrlmgrconfig.EndpointControllerConfiguration) error
ApplyTo fills up EndPointController config with options.
func (*EndpointControllerOptions) Validate ¶
func (o *EndpointControllerOptions) Validate() []error
Validate checks validation of EndpointControllerOptions.
type GarbageCollectorControllerOptions ¶
type GarbageCollectorControllerOptions struct { ConcurrentGCSyncs int32 GCIgnoredResources []kubectrlmgrconfig.GroupResource EnableGarbageCollector bool }
GarbageCollectorControllerOptions holds the GarbageCollectorController options.
func (*GarbageCollectorControllerOptions) AddFlags ¶
func (o *GarbageCollectorControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to GarbageCollectorController for controller manager to the specified FlagSet.
func (*GarbageCollectorControllerOptions) ApplyTo ¶
func (o *GarbageCollectorControllerOptions) ApplyTo(cfg *kubectrlmgrconfig.GarbageCollectorControllerConfiguration) error
ApplyTo fills up GarbageCollectorController config with options.
func (*GarbageCollectorControllerOptions) Validate ¶
func (o *GarbageCollectorControllerOptions) Validate() []error
Validate checks validation of GarbageCollectorController.
type HPAControllerOptions ¶
type HPAControllerOptions struct { HorizontalPodAutoscalerUseRESTClients bool HorizontalPodAutoscalerTolerance float64 HorizontalPodAutoscalerDownscaleStabilizationWindow metav1.Duration HorizontalPodAutoscalerDownscaleForbiddenWindow metav1.Duration HorizontalPodAutoscalerUpscaleForbiddenWindow metav1.Duration HorizontalPodAutoscalerSyncPeriod metav1.Duration HorizontalPodAutoscalerCPUInitializationPeriod metav1.Duration HorizontalPodAutoscalerInitialReadinessDelay metav1.Duration }
HPAControllerOptions holds the HPAController options.
func (*HPAControllerOptions) AddFlags ¶
func (o *HPAControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to HPAController for controller manager to the specified FlagSet.
func (*HPAControllerOptions) ApplyTo ¶
func (o *HPAControllerOptions) ApplyTo(cfg *kubectrlmgrconfig.HPAControllerConfiguration) error
ApplyTo fills up HPAController config with options.
func (*HPAControllerOptions) Validate ¶
func (o *HPAControllerOptions) Validate() []error
Validate checks validation of HPAControllerOptions.
type JobControllerOptions ¶
type JobControllerOptions struct {
ConcurrentJobSyncs int32
}
JobControllerOptions holds the JobController options.
func (*JobControllerOptions) AddFlags ¶
func (o *JobControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to JobController for controller manager to the specified FlagSet.
func (*JobControllerOptions) ApplyTo ¶
func (o *JobControllerOptions) ApplyTo(cfg *kubectrlmgrconfig.JobControllerConfiguration) error
ApplyTo fills up JobController config with options.
func (*JobControllerOptions) Validate ¶
func (o *JobControllerOptions) Validate() []error
Validate checks validation of JobControllerOptions.
type KubeControllerManagerOptions ¶
type KubeControllerManagerOptions struct { Generic *cmoptions.GenericControllerManagerConfigurationOptions 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 Master string Kubeconfig 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 ¶
func (s *KubeControllerManagerOptions) ApplyTo(c *kubecontrollerconfig.Config) error
ApplyTo fills up controller manager config with options.
func (KubeControllerManagerOptions) Config ¶
func (s KubeControllerManagerOptions) Config(allControllers []string, disabledByDefaultControllers []string) (*kubecontrollerconfig.Config, error)
Config return a controller manager config objective
func (*KubeControllerManagerOptions) Flags ¶
func (s *KubeControllerManagerOptions) Flags(allControllers []string, disabledByDefaultControllers []string) apiserverflag.NamedFlagSets
Flags returns flags for a specific APIServer by section name
type NamespaceControllerOptions ¶
type NamespaceControllerOptions struct { NamespaceSyncPeriod metav1.Duration ConcurrentNamespaceSyncs int32 }
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 ¶
func (o *NamespaceControllerOptions) ApplyTo(cfg *kubectrlmgrconfig.NamespaceControllerConfiguration) error
ApplyTo fills up NamespaceController config with options.
func (*NamespaceControllerOptions) Validate ¶
func (o *NamespaceControllerOptions) Validate() []error
Validate checks validation of NamespaceControllerOptions.
type NodeIPAMControllerOptions ¶
NodeIPAMControllerOptions holds the NodeIpamController options.
func (*NodeIPAMControllerOptions) AddFlags ¶
func (o *NodeIPAMControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to NodeIpamController for controller manager to the specified FlagSet.
func (*NodeIPAMControllerOptions) ApplyTo ¶
func (o *NodeIPAMControllerOptions) ApplyTo(cfg *kubectrlmgrconfig.NodeIPAMControllerConfiguration) error
ApplyTo fills up NodeIpamController config with options.
func (*NodeIPAMControllerOptions) Validate ¶
func (o *NodeIPAMControllerOptions) Validate() []error
Validate checks validation of NodeIPAMControllerOptions.
type NodeLifecycleControllerOptions ¶
type NodeLifecycleControllerOptions struct { EnableTaintManager bool NodeEvictionRate float32 SecondaryNodeEvictionRate float32 NodeStartupGracePeriod metav1.Duration NodeMonitorGracePeriod metav1.Duration PodEvictionTimeout metav1.Duration LargeClusterSizeThreshold int32 UnhealthyZoneThreshold float32 }
NodeLifecycleControllerOptions holds the NodeLifecycleController options.
func (*NodeLifecycleControllerOptions) AddFlags ¶
func (o *NodeLifecycleControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to NodeLifecycleController for controller manager to the specified FlagSet.
func (*NodeLifecycleControllerOptions) ApplyTo ¶
func (o *NodeLifecycleControllerOptions) ApplyTo(cfg *kubectrlmgrconfig.NodeLifecycleControllerConfiguration) error
ApplyTo fills up NodeLifecycleController config with options.
func (*NodeLifecycleControllerOptions) Validate ¶
func (o *NodeLifecycleControllerOptions) Validate() []error
Validate checks validation of NodeLifecycleControllerOptions.
type PersistentVolumeBinderControllerOptions ¶
type PersistentVolumeBinderControllerOptions struct { PVClaimBinderSyncPeriod metav1.Duration VolumeConfiguration kubectrlmgrconfig.VolumeConfiguration }
PersistentVolumeBinderControllerOptions holds the PersistentVolumeBinderController options.
func (*PersistentVolumeBinderControllerOptions) AddFlags ¶
func (o *PersistentVolumeBinderControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to PersistentVolumeBinderController for controller manager to the specified FlagSet.
func (*PersistentVolumeBinderControllerOptions) ApplyTo ¶
func (o *PersistentVolumeBinderControllerOptions) ApplyTo(cfg *kubectrlmgrconfig.PersistentVolumeBinderControllerConfiguration) error
ApplyTo fills up PersistentVolumeBinderController config with options.
func (*PersistentVolumeBinderControllerOptions) Validate ¶
func (o *PersistentVolumeBinderControllerOptions) Validate() []error
Validate checks validation of PersistentVolumeBinderControllerOptions.
type PodGCControllerOptions ¶
type PodGCControllerOptions struct {
TerminatedPodGCThreshold int32
}
PodGCControllerOptions holds the PodGCController options.
func (*PodGCControllerOptions) AddFlags ¶
func (o *PodGCControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to PodGCController for controller manager to the specified FlagSet.
func (*PodGCControllerOptions) ApplyTo ¶
func (o *PodGCControllerOptions) ApplyTo(cfg *kubectrlmgrconfig.PodGCControllerConfiguration) error
ApplyTo fills up PodGCController config with options.
func (*PodGCControllerOptions) Validate ¶
func (o *PodGCControllerOptions) Validate() []error
Validate checks validation of PodGCControllerOptions.
type ReplicaSetControllerOptions ¶
type ReplicaSetControllerOptions struct {
ConcurrentRSSyncs int32
}
ReplicaSetControllerOptions holds the ReplicaSetController options.
func (*ReplicaSetControllerOptions) AddFlags ¶
func (o *ReplicaSetControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to ReplicaSetController for controller manager to the specified FlagSet.
func (*ReplicaSetControllerOptions) ApplyTo ¶
func (o *ReplicaSetControllerOptions) ApplyTo(cfg *kubectrlmgrconfig.ReplicaSetControllerConfiguration) error
ApplyTo fills up ReplicaSetController config with options.
func (*ReplicaSetControllerOptions) Validate ¶
func (o *ReplicaSetControllerOptions) Validate() []error
Validate checks validation of ReplicaSetControllerOptions.
type ReplicationControllerOptions ¶
type ReplicationControllerOptions struct {
ConcurrentRCSyncs int32
}
ReplicationControllerOptions holds the ReplicationController options.
func (*ReplicationControllerOptions) AddFlags ¶
func (o *ReplicationControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to ReplicationController for controller manager to the specified FlagSet.
func (*ReplicationControllerOptions) ApplyTo ¶
func (o *ReplicationControllerOptions) ApplyTo(cfg *kubectrlmgrconfig.ReplicationControllerConfiguration) error
ApplyTo fills up ReplicationController config with options.
func (*ReplicationControllerOptions) Validate ¶
func (o *ReplicationControllerOptions) Validate() []error
Validate checks validation of ReplicationControllerOptions.
type ResourceQuotaControllerOptions ¶
type ResourceQuotaControllerOptions struct { ResourceQuotaSyncPeriod metav1.Duration ConcurrentResourceQuotaSyncs int32 }
ResourceQuotaControllerOptions holds the ResourceQuotaController options.
func (*ResourceQuotaControllerOptions) AddFlags ¶
func (o *ResourceQuotaControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to ResourceQuotaController for controller manager to the specified FlagSet.
func (*ResourceQuotaControllerOptions) ApplyTo ¶
func (o *ResourceQuotaControllerOptions) ApplyTo(cfg *kubectrlmgrconfig.ResourceQuotaControllerConfiguration) error
ApplyTo fills up ResourceQuotaController config with options.
func (*ResourceQuotaControllerOptions) Validate ¶
func (o *ResourceQuotaControllerOptions) Validate() []error
Validate checks validation of ResourceQuotaControllerOptions.
type SAControllerOptions ¶
type SAControllerOptions struct { ServiceAccountKeyFile string ConcurrentSATokenSyncs int32 RootCAFile string }
SAControllerOptions holds the ServiceAccountController options.
func (*SAControllerOptions) AddFlags ¶
func (o *SAControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to ServiceAccountController for controller manager to the specified FlagSet
func (*SAControllerOptions) ApplyTo ¶
func (o *SAControllerOptions) ApplyTo(cfg *kubectrlmgrconfig.SAControllerConfiguration) error
ApplyTo fills up ServiceAccountController config with options.
func (*SAControllerOptions) Validate ¶
func (o *SAControllerOptions) Validate() []error
Validate checks validation of ServiceAccountControllerOptions.
type TTLAfterFinishedControllerOptions ¶
type TTLAfterFinishedControllerOptions struct {
ConcurrentTTLSyncs int32
}
TTLAfterFinishedControllerOptions holds the TTLAfterFinishedController options.
func (*TTLAfterFinishedControllerOptions) AddFlags ¶
func (o *TTLAfterFinishedControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to TTLAfterFinishedController for controller manager to the specified FlagSet.
func (*TTLAfterFinishedControllerOptions) ApplyTo ¶
func (o *TTLAfterFinishedControllerOptions) ApplyTo(cfg *kubectrlmgrconfig.TTLAfterFinishedControllerConfiguration) error
ApplyTo fills up TTLAfterFinishedController config with options.
func (*TTLAfterFinishedControllerOptions) Validate ¶
func (o *TTLAfterFinishedControllerOptions) Validate() []error
Validate checks validation of TTLAfterFinishedControllerOptions.
Source Files ¶
- attachdetachcontroller.go
- csrsigningcontroller.go
- daemonsetcontroller.go
- deploymentcontroller.go
- deprecatedcontroller.go
- endpointcontroller.go
- garbagecollectorcontroller.go
- hpacontroller.go
- jobcontroller.go
- namespacecontroller.go
- nodeipamcontroller.go
- nodelifecyclecontroller.go
- options.go
- persistentvolumebindercontroller.go
- podgccontroller.go
- replicasetcontroller.go
- replicationcontroller.go
- resourcequotacontroller.go
- serviceaccountcontroller.go
- ttlafterfinishedcontroller.go