options

package
v0.24.12-rc.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 28 Imported by: 81

Documentation

Index

Constants

View Source
const (
	// CloudControllerManagerUserAgent is the userAgent name when starting cloud-controller managers.
	CloudControllerManagerUserAgent = "cloud-controller-manager"
)

Variables

This section is empty.

Functions

func NewDefaultComponentConfig

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

NewDefaultComponentConfig returns cloud-controller manager configuration object.

Types

type CloudControllerManagerOptions

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

	SecureServing  *apiserveroptions.SecureServingOptionsWithLoopback
	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

func (o *CloudControllerManagerOptions) ApplyTo(c *config.Config, userAgent string) error

ApplyTo fills up cloud controller manager config with options.

func (*CloudControllerManagerOptions) Config

func (o *CloudControllerManagerOptions) Config(allControllers, disabledByDefaultControllers []string) (*config.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 CloudProviderOptions

type CloudProviderOptions struct {
	*cpconfig.CloudProviderConfiguration
}

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 KubeCloudSharedOptions

type KubeCloudSharedOptions struct {
	*cpconfig.KubeCloudSharedConfiguration
	CloudProvider *CloudProviderOptions
}

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

func NewKubeCloudSharedOptions

func NewKubeCloudSharedOptions(cfg *cpconfig.KubeCloudSharedConfiguration) *KubeCloudSharedOptions

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 ServiceControllerOptions

type ServiceControllerOptions struct {
	*serviceconfig.ServiceControllerConfiguration
}

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