options

package
v0.7.20 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: Apache-2.0 Imports: 31 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// CloudControllerManagerUserAgent is the userAgent name when starting cloud-controller managers.
	CloudControllerManagerUserAgent = "cloud-controller-manager"
	// DefaultInsecureCloudControllerManagerPort is the default insecure cloud-controller manager port.
	DefaultInsecureCloudControllerManagerPort = 0

	// CloudControllerManagerPort is the default port for the cloud controller manager server.
	// This value may be overridden by a flag at startup.
	CloudControllerManagerPort = cloudprovider.CloudControllerManagerPort
)

Variables

This section is empty.

Functions

func NewDefaultComponentConfig

func NewDefaultComponentConfig(insecurePort int32) (*ccmconfig.CloudControllerManagerConfiguration, error)

NewDefaultComponentConfig returns cloud-controller manager configuration object.

Types

type CloudControllerManagerOptions

type CloudControllerManagerOptions struct {
	Generic            *cmoptions.GenericControllerManagerConfigurationOptions
	KubeCloudShared    *cpoptions.KubeCloudSharedOptions
	ServiceController  *cpoptions.ServiceControllerOptions
	NodeIPAMController *NodeIPAMControllerOptions

	SecureServing *apiserveroptions.SecureServingOptionsWithLoopback
	// TODO: remove insecure serving mode
	InsecureServing *apiserveroptions.DeprecatedInsecureServingOptionsWithLoopback
	Authentication  *apiserveroptions.DelegatingAuthenticationOptions
	Authorization   *apiserveroptions.DelegatingAuthorizationOptions

	Master     string
	Kubeconfig string

	// NodeStatusUpdateFrequency is the frequency at which the controller updates nodes' status
	NodeStatusUpdateFrequency metav1.Duration
}

CloudControllerManagerOptions is the main context object for the controller manager.

func NewCloudControllerManagerOptions

func NewCloudControllerManagerOptions() (*CloudControllerManagerOptions, error)

NewCloudControllerManagerOptions creates a new ExternalCMServer with a default config.

func (*CloudControllerManagerOptions) ApplyTo

ApplyTo fills up cloud controller manager config with options.

func (*CloudControllerManagerOptions) Config

func (o *CloudControllerManagerOptions) Config(allControllers, disabledByDefaultControllers []string) (*cloudcontrollerconfig.Config, error)

Config return a cloud controller manager config objective

func (*CloudControllerManagerOptions) Flags

func (o *CloudControllerManagerOptions) Flags(allControllers, disabledByDefaultControllers []string) cliflag.NamedFlagSets

Flags returns flags for a specific APIServer by section name

func (*CloudControllerManagerOptions) Validate

func (o *CloudControllerManagerOptions) Validate(allControllers, disabledByDefaultControllers []string) error

Validate is used to validate config before launching the cloud controller manager

type NodeIPAMControllerOptions added in v0.7.1

type NodeIPAMControllerOptions struct {
	*nodeipamconfig.NodeIPAMControllerConfiguration
}

NodeIPAMControllerOptions holds the NodeIpamController options.

func (*NodeIPAMControllerOptions) AddFlags added in v0.7.1

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

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

func (*NodeIPAMControllerOptions) ApplyTo added in v0.7.1

ApplyTo fills up NodeIpamController config with options.

func (*NodeIPAMControllerOptions) Validate added in v0.7.1

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

Validate checks validation of NodeIPAMControllerOptions.

Jump to

Keyboard shortcuts

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