options

package
v1.13.0-alpha.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudProviderOptions added in v1.11.2

type CloudProviderOptions struct {
	CloudConfigFile string
	Name            string
}

CloudProviderOptions holds the cloudprovider options.

func (*CloudProviderOptions) AddFlags added in v1.11.2

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

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

func (*CloudProviderOptions) ApplyTo added in v1.11.2

ApplyTo fills up cloudprovider config with options.

func (*CloudProviderOptions) Validate added in v1.11.2

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

Validate checks validation of cloudprovider options.

type DebuggingOptions added in v1.11.2

type DebuggingOptions struct {
	EnableProfiling           bool
	EnableContentionProfiling bool
}

DebuggingOptions holds the Debugging options.

func (*DebuggingOptions) AddFlags added in v1.11.2

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

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

func (*DebuggingOptions) ApplyTo added in v1.11.2

ApplyTo fills up Debugging config with options.

func (*DebuggingOptions) Validate added in v1.11.2

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

Validate checks validation of DebuggingOptions.

type GenericComponentConfigOptions added in v1.11.2

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 added in v1.11.2

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 added in v1.11.2

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

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

func (*GenericComponentConfigOptions) ApplyTo added in v1.11.2

ApplyTo fills up generic config with options.

func (*GenericComponentConfigOptions) Validate added in v1.11.2

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

Validate checks validation of GenericOptions.

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 KubeCloudSharedOptions added in v1.11.2

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
	NodeSyncPeriod               metav1.Duration
}

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

func NewKubeCloudSharedOptions added in v1.11.2

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 added in v1.11.2

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

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

func (*KubeCloudSharedOptions) ApplyTo added in v1.11.2

ApplyTo fills up KubeCloudShared config with options.

func (*KubeCloudSharedOptions) Validate added in v1.11.2

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

Validate checks validation of KubeCloudSharedOptions.

type ServiceControllerOptions added in v1.11.2

type ServiceControllerOptions struct {
	ConcurrentServiceSyncs int32
}

ServiceControllerOptions holds the ServiceController options.

func (*ServiceControllerOptions) AddFlags added in v1.11.2

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

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

func (*ServiceControllerOptions) ApplyTo added in v1.11.2

ApplyTo fills up ServiceController config with options.

func (*ServiceControllerOptions) Validate added in v1.11.2

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