options

package
v0.0.0-...-3abba25 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

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

Variables

This section is empty.

Functions

This section is empty.

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

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

ApplyTo fills up CSRSigningController config with options.

func (*CSRSigningControllerOptions) Validate

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

Validate checks validation of CSRSigningControllerOptions.

type CloudProviderOptions

type CloudProviderOptions struct {
	CloudConfigFile string
	Name            string
}

CloudProviderOptions holds the cloudprovider options.

func (*CloudProviderOptions) AddFlags

func (s *CloudProviderOptions) AddFlags(fs *pflag.FlagSet)

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

func (*CloudProviderOptions) ApplyTo

ApplyTo fills up cloudprovider config with options.

func (*CloudProviderOptions) Validate

func (s *CloudProviderOptions) Validate() []error

Validate checks validation of cloudprovider options.

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

ApplyTo fills up DaemonSetController config with options.

func (*DaemonSetControllerOptions) Validate

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

Validate checks validation of DaemonSetControllerOptions.

type DebuggingOptions

type DebuggingOptions struct {
	EnableProfiling           bool
	EnableContentionProfiling bool
}

DebuggingOptions holds the Debugging options.

func (*DebuggingOptions) AddFlags

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

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

func (*DebuggingOptions) ApplyTo

ApplyTo fills up Debugging config with options.

func (*DebuggingOptions) Validate

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

Validate checks validation of DebuggingOptions.

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

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.

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

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

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     []componentconfig.GroupResource
	EnableGarbageCollector bool
}

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 GenericComponentConfigOptions

type GenericComponentConfigOptions struct {
	MinResyncPeriod         metav1.Duration
	ContentType             string
	KubeAPIQPS              float32
	KubeAPIBurst            int32
	ControllerStartInterval metav1.Duration
	LeaderElection          componentconfig.LeaderElectionConfiguration
}

GenericComponentConfigOptions holds the options which are generic.

func NewGenericComponentConfigOptions

NewGenericComponentConfigOptions returns generic configuration default values for both the kube-controller-manager and the cloud-contoller-manager. Any common changes should be made here. Any individual changes should be made in that controller.

func (*GenericComponentConfigOptions) AddFlags

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

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

func (*GenericComponentConfigOptions) ApplyTo

ApplyTo fills up generic config with options.

func (*GenericComponentConfigOptions) Validate

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

Validate checks validation of GenericOptions.

type HPAControllerOptions

type HPAControllerOptions struct {
	HorizontalPodAutoscalerUseRESTClients           bool
	HorizontalPodAutoscalerTolerance                float64
	HorizontalPodAutoscalerDownscaleForbiddenWindow metav1.Duration
	HorizontalPodAutoscalerUpscaleForbiddenWindow   metav1.Duration
	HorizontalPodAutoscalerSyncPeriod               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

ApplyTo fills up HPAController config with options.

func (*HPAControllerOptions) Validate

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

Validate checks validation of HPAControllerOptions.

type InsecureServingOptions

type InsecureServingOptions struct {
	BindAddress net.IP
	BindPort    int
	// BindNetwork is the type of network to bind to - defaults to "tcp", accepts "tcp",
	// "tcp4", and "tcp6".
	BindNetwork string

	// Listener is the secure server network listener.
	// either Listener or BindAddress/BindPort/BindNetwork is set,
	// if Listener is set, use it and omit BindAddress/BindPort/BindNetwork.
	Listener net.Listener

	// ListenFunc can be overridden to create a custom listener, e.g. for mocking in tests.
	// It defaults to options.CreateListener.
	ListenFunc func(network, addr string) (net.Listener, int, error)
}

InsecureServingOptions are for creating an unauthenticated, unauthorized, insecure port. No one should be using these anymore.

func (*InsecureServingOptions) AddFlags

func (s *InsecureServingOptions) AddFlags(fs *pflag.FlagSet)

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

func (*InsecureServingOptions) ApplyTo

ApplyTo adds InsecureServingOptions to the insecureserverinfo amd kube-controller manager configuration. Note: the double pointer allows to set the *InsecureServingInfo to nil without referencing the struct hosting this pointer.

func (*InsecureServingOptions) Validate

func (s *InsecureServingOptions) Validate() []error

Validate ensures that the insecure port values within the range of the port.

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

ApplyTo fills up JobController config with options.

func (*JobControllerOptions) Validate

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

Validate checks validation of JobControllerOptions.

type KubeCloudSharedOptions

type KubeCloudSharedOptions struct {
	Port                         int32
	Address                      string
	UseServiceAccountCredentials bool
	AllowUntaggedCloud           bool
	RouteReconciliationPeriod    metav1.Duration
	NodeMonitorPeriod            metav1.Duration
	ClusterName                  string
	ClusterCIDR                  string
	AllocateNodeCIDRs            bool
	CIDRAllocatorType            string
	ConfigureCloudRoutes         bool
	ServiceAccountKeyFile        string
	NodeSyncPeriod               metav1.Duration
}

KubeCloudSharedOptions holds the options shared between kube-controller-manager and cloud-controller-manager.

func NewKubeCloudSharedOptions

NewKubeCloudSharedOptions returns common/default configuration values for both the kube-controller-manager and the cloud-contoller-manager. Any common changes should be made here. Any individual changes should be made in that controller.

func (*KubeCloudSharedOptions) AddFlags

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

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

func (*KubeCloudSharedOptions) ApplyTo

ApplyTo fills up KubeCloudShared config with options.

func (*KubeCloudSharedOptions) Validate

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

Validate checks validation of KubeCloudSharedOptions.

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

ApplyTo fills up NamespaceController config with options.

func (*NamespaceControllerOptions) Validate

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

Validate checks validation of NamespaceControllerOptions.

type NodeIpamControllerOptions

type NodeIpamControllerOptions struct {
	ServiceCIDR      string
	NodeCIDRMaskSize int32
}

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

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

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     componentconfig.VolumeConfiguration
}

PersistentVolumeBinderControllerOptions holds the PersistentVolumeBinderController options.

func (*PersistentVolumeBinderControllerOptions) AddFlags

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

func (*PersistentVolumeBinderControllerOptions) ApplyTo

ApplyTo fills up PersistentVolumeBinderController config with options.

func (*PersistentVolumeBinderControllerOptions) Validate

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

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

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

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

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 {
	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

ApplyTo fills up ServiceAccountController config with options.

func (*SAControllerOptions) Validate

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

Validate checks validation of ServiceAccountControllerOptions.

type ServiceControllerOptions

type ServiceControllerOptions struct {
	ConcurrentServiceSyncs int32
}

ServiceControllerOptions holds the ServiceController options.

func (*ServiceControllerOptions) AddFlags

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

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

func (*ServiceControllerOptions) ApplyTo

ApplyTo fills up ServiceController config with options.

func (*ServiceControllerOptions) Validate

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

Validate checks validation of ServiceControllerOptions.

Jump to

Keyboard shortcuts

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