kubernetes: k8s.io/kubernetes/cmd/kube-controller-manager/app/options Index | Files

package options

import "k8s.io/kubernetes/cmd/kube-controller-manager/app/options"

Package options provides the flags used for the controller manager.

Index

Package 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

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"
)

func NewDefaultComponentConfig Uses

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

NewDefaultComponentConfig returns kube-controller manager configuration object.

type AttachDetachControllerOptions Uses

type AttachDetachControllerOptions struct {
    *attachdetachconfig.AttachDetachControllerConfiguration
}

AttachDetachControllerOptions holds the AttachDetachController options.

func (*AttachDetachControllerOptions) AddFlags Uses

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

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

func (*AttachDetachControllerOptions) ApplyTo Uses

func (o *AttachDetachControllerOptions) ApplyTo(cfg *attachdetachconfig.AttachDetachControllerConfiguration) error

ApplyTo fills up AttachDetachController config with options.

func (*AttachDetachControllerOptions) Validate Uses

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

Validate checks validation of AttachDetachControllerOptions.

type CSRSigningControllerOptions Uses

type CSRSigningControllerOptions struct {
    *csrsigningconfig.CSRSigningControllerConfiguration
}

CSRSigningControllerOptions holds the CSRSigningController options.

func (*CSRSigningControllerOptions) AddFlags Uses

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

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

func (*CSRSigningControllerOptions) ApplyTo Uses

func (o *CSRSigningControllerOptions) ApplyTo(cfg *csrsigningconfig.CSRSigningControllerConfiguration) error

ApplyTo fills up CSRSigningController config with options.

func (*CSRSigningControllerOptions) Validate Uses

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

Validate checks validation of CSRSigningControllerOptions.

type DaemonSetControllerOptions Uses

type DaemonSetControllerOptions struct {
    *daemonconfig.DaemonSetControllerConfiguration
}

DaemonSetControllerOptions holds the DaemonSetController options.

func (*DaemonSetControllerOptions) AddFlags Uses

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

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

func (*DaemonSetControllerOptions) ApplyTo Uses

func (o *DaemonSetControllerOptions) ApplyTo(cfg *daemonconfig.DaemonSetControllerConfiguration) error

ApplyTo fills up DaemonSetController config with options.

func (*DaemonSetControllerOptions) Validate Uses

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

Validate checks validation of DaemonSetControllerOptions.

type DeploymentControllerOptions Uses

type DeploymentControllerOptions struct {
    *deploymentconfig.DeploymentControllerConfiguration
}

DeploymentControllerOptions holds the DeploymentController options.

func (*DeploymentControllerOptions) AddFlags Uses

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

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

func (*DeploymentControllerOptions) ApplyTo Uses

func (o *DeploymentControllerOptions) ApplyTo(cfg *deploymentconfig.DeploymentControllerConfiguration) error

ApplyTo fills up DeploymentController config with options.

func (*DeploymentControllerOptions) Validate Uses

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

Validate checks validation of DeploymentControllerOptions.

type DeprecatedControllerOptions Uses

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 Uses

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

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

func (*DeprecatedControllerOptions) ApplyTo Uses

func (o *DeprecatedControllerOptions) ApplyTo(cfg *kubectrlmgrconfig.DeprecatedControllerConfiguration) error

ApplyTo fills up DeprecatedController config with options.

func (*DeprecatedControllerOptions) Validate Uses

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

Validate checks validation of DeprecatedControllerOptions.

type EndpointControllerOptions Uses

type EndpointControllerOptions struct {
    *endpointconfig.EndpointControllerConfiguration
}

EndpointControllerOptions holds the EndPointController options.

func (*EndpointControllerOptions) AddFlags Uses

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

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

func (*EndpointControllerOptions) ApplyTo Uses

func (o *EndpointControllerOptions) ApplyTo(cfg *endpointconfig.EndpointControllerConfiguration) error

ApplyTo fills up EndPointController config with options.

func (*EndpointControllerOptions) Validate Uses

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

Validate checks validation of EndpointControllerOptions.

type GarbageCollectorControllerOptions Uses

type GarbageCollectorControllerOptions struct {
    *garbagecollectorconfig.GarbageCollectorControllerConfiguration
}

GarbageCollectorControllerOptions holds the GarbageCollectorController options.

func (*GarbageCollectorControllerOptions) AddFlags Uses

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

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

func (*GarbageCollectorControllerOptions) ApplyTo Uses

func (o *GarbageCollectorControllerOptions) ApplyTo(cfg *garbagecollectorconfig.GarbageCollectorControllerConfiguration) error

ApplyTo fills up GarbageCollectorController config with options.

func (*GarbageCollectorControllerOptions) Validate Uses

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

Validate checks validation of GarbageCollectorController.

type HPAControllerOptions Uses

type HPAControllerOptions struct {
    *poautosclerconfig.HPAControllerConfiguration
}

HPAControllerOptions holds the HPAController options.

func (*HPAControllerOptions) AddFlags Uses

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

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

func (*HPAControllerOptions) ApplyTo Uses

func (o *HPAControllerOptions) ApplyTo(cfg *poautosclerconfig.HPAControllerConfiguration) error

ApplyTo fills up HPAController config with options.

func (*HPAControllerOptions) Validate Uses

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

Validate checks validation of HPAControllerOptions.

type JobControllerOptions Uses

type JobControllerOptions struct {
    *jobconfig.JobControllerConfiguration
}

JobControllerOptions holds the JobController options.

func (*JobControllerOptions) AddFlags Uses

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

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

func (*JobControllerOptions) ApplyTo Uses

func (o *JobControllerOptions) ApplyTo(cfg *jobconfig.JobControllerConfiguration) error

ApplyTo fills up JobController config with options.

func (*JobControllerOptions) Validate Uses

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

Validate checks validation of JobControllerOptions.

type KubeControllerManagerOptions Uses

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 Uses

func NewKubeControllerManagerOptions() (*KubeControllerManagerOptions, error)

NewKubeControllerManagerOptions creates a new KubeControllerManagerOptions with a default config.

func (*KubeControllerManagerOptions) ApplyTo Uses

func (s *KubeControllerManagerOptions) ApplyTo(c *kubecontrollerconfig.Config) error

ApplyTo fills up controller manager config with options.

func (KubeControllerManagerOptions) Config Uses

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

Config return a controller manager config objective

func (*KubeControllerManagerOptions) Flags Uses

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

Flags returns flags for a specific APIServer by section name

func (*KubeControllerManagerOptions) Validate Uses

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 Uses

type NamespaceControllerOptions struct {
    *namespaceconfig.NamespaceControllerConfiguration
}

NamespaceControllerOptions holds the NamespaceController options.

func (*NamespaceControllerOptions) AddFlags Uses

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

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

func (*NamespaceControllerOptions) ApplyTo Uses

func (o *NamespaceControllerOptions) ApplyTo(cfg *namespaceconfig.NamespaceControllerConfiguration) error

ApplyTo fills up NamespaceController config with options.

func (*NamespaceControllerOptions) Validate Uses

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

Validate checks validation of NamespaceControllerOptions.

type NodeIPAMControllerOptions Uses

type NodeIPAMControllerOptions struct {
    *nodeipamconfig.NodeIPAMControllerConfiguration
}

NodeIPAMControllerOptions holds the NodeIpamController options.

func (*NodeIPAMControllerOptions) AddFlags Uses

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

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

func (*NodeIPAMControllerOptions) ApplyTo Uses

func (o *NodeIPAMControllerOptions) ApplyTo(cfg *nodeipamconfig.NodeIPAMControllerConfiguration) error

ApplyTo fills up NodeIpamController config with options.

func (*NodeIPAMControllerOptions) Validate Uses

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

Validate checks validation of NodeIPAMControllerOptions.

type NodeLifecycleControllerOptions Uses

type NodeLifecycleControllerOptions struct {
    *nodelifecycleconfig.NodeLifecycleControllerConfiguration
}

NodeLifecycleControllerOptions holds the NodeLifecycleController options.

func (*NodeLifecycleControllerOptions) AddFlags Uses

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

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

func (*NodeLifecycleControllerOptions) ApplyTo Uses

func (o *NodeLifecycleControllerOptions) ApplyTo(cfg *nodelifecycleconfig.NodeLifecycleControllerConfiguration) error

ApplyTo fills up NodeLifecycleController config with options.

func (*NodeLifecycleControllerOptions) Validate Uses

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

Validate checks validation of NodeLifecycleControllerOptions.

type PersistentVolumeBinderControllerOptions Uses

type PersistentVolumeBinderControllerOptions struct {
    *persistentvolumeconfig.PersistentVolumeBinderControllerConfiguration
}

PersistentVolumeBinderControllerOptions holds the PersistentVolumeBinderController options.

func (*PersistentVolumeBinderControllerOptions) AddFlags Uses

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

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

func (*PersistentVolumeBinderControllerOptions) ApplyTo Uses

func (o *PersistentVolumeBinderControllerOptions) ApplyTo(cfg *persistentvolumeconfig.PersistentVolumeBinderControllerConfiguration) error

ApplyTo fills up PersistentVolumeBinderController config with options.

func (*PersistentVolumeBinderControllerOptions) Validate Uses

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

Validate checks validation of PersistentVolumeBinderControllerOptions.

type PodGCControllerOptions Uses

type PodGCControllerOptions struct {
    *podgcconfig.PodGCControllerConfiguration
}

PodGCControllerOptions holds the PodGCController options.

func (*PodGCControllerOptions) AddFlags Uses

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

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

func (*PodGCControllerOptions) ApplyTo Uses

func (o *PodGCControllerOptions) ApplyTo(cfg *podgcconfig.PodGCControllerConfiguration) error

ApplyTo fills up PodGCController config with options.

func (*PodGCControllerOptions) Validate Uses

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

Validate checks validation of PodGCControllerOptions.

type ReplicaSetControllerOptions Uses

type ReplicaSetControllerOptions struct {
    *replicasetconfig.ReplicaSetControllerConfiguration
}

ReplicaSetControllerOptions holds the ReplicaSetController options.

func (*ReplicaSetControllerOptions) AddFlags Uses

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

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

func (*ReplicaSetControllerOptions) ApplyTo Uses

func (o *ReplicaSetControllerOptions) ApplyTo(cfg *replicasetconfig.ReplicaSetControllerConfiguration) error

ApplyTo fills up ReplicaSetController config with options.

func (*ReplicaSetControllerOptions) Validate Uses

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

Validate checks validation of ReplicaSetControllerOptions.

type ReplicationControllerOptions Uses

type ReplicationControllerOptions struct {
    *replicationconfig.ReplicationControllerConfiguration
}

ReplicationControllerOptions holds the ReplicationController options.

func (*ReplicationControllerOptions) AddFlags Uses

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

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

func (*ReplicationControllerOptions) ApplyTo Uses

func (o *ReplicationControllerOptions) ApplyTo(cfg *replicationconfig.ReplicationControllerConfiguration) error

ApplyTo fills up ReplicationController config with options.

func (*ReplicationControllerOptions) Validate Uses

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

Validate checks validation of ReplicationControllerOptions.

type ResourceQuotaControllerOptions Uses

type ResourceQuotaControllerOptions struct {
    *resourcequotaconfig.ResourceQuotaControllerConfiguration
}

ResourceQuotaControllerOptions holds the ResourceQuotaController options.

func (*ResourceQuotaControllerOptions) AddFlags Uses

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

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

func (*ResourceQuotaControllerOptions) ApplyTo Uses

func (o *ResourceQuotaControllerOptions) ApplyTo(cfg *resourcequotaconfig.ResourceQuotaControllerConfiguration) error

ApplyTo fills up ResourceQuotaController config with options.

func (*ResourceQuotaControllerOptions) Validate Uses

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

Validate checks validation of ResourceQuotaControllerOptions.

type SAControllerOptions Uses

type SAControllerOptions struct {
    *serviceaccountconfig.SAControllerConfiguration
}

SAControllerOptions holds the ServiceAccountController options.

func (*SAControllerOptions) AddFlags Uses

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

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

func (*SAControllerOptions) ApplyTo Uses

func (o *SAControllerOptions) ApplyTo(cfg *serviceaccountconfig.SAControllerConfiguration) error

ApplyTo fills up ServiceAccountController config with options.

func (*SAControllerOptions) Validate Uses

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

Validate checks validation of ServiceAccountControllerOptions.

type TTLAfterFinishedControllerOptions Uses

type TTLAfterFinishedControllerOptions struct {
    *ttlafterfinishedconfig.TTLAfterFinishedControllerConfiguration
}

TTLAfterFinishedControllerOptions holds the TTLAfterFinishedController options.

func (*TTLAfterFinishedControllerOptions) AddFlags Uses

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

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

func (*TTLAfterFinishedControllerOptions) ApplyTo Uses

func (o *TTLAfterFinishedControllerOptions) ApplyTo(cfg *ttlafterfinishedconfig.TTLAfterFinishedControllerConfiguration) error

ApplyTo fills up TTLAfterFinishedController config with options.

func (*TTLAfterFinishedControllerOptions) Validate Uses

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

Validate checks validation of TTLAfterFinishedControllerOptions.

Package options imports 41 packages (graph) and is imported by 117 packages. Updated 2019-03-26. Refresh now. Tools for package owners.