Documentation ¶
Index ¶
- Constants
- func NewDefaultComponentConfig(insecurePort int32) (*ccmconfig.CloudControllerManagerConfiguration, error)
- type CloudControllerManagerOptions
- func (o *CloudControllerManagerOptions) ApplyTo(c *config.Config, userAgent string) error
- func (o *CloudControllerManagerOptions) Config(allControllers, disabledByDefaultControllers []string) (*config.Config, error)
- func (o *CloudControllerManagerOptions) Flags(allControllers, disabledByDefaultControllers []string) cliflag.NamedFlagSets
- func (o *CloudControllerManagerOptions) Validate(allControllers, disabledByDefaultControllers []string) error
- type CloudProviderOptions
- type KubeCloudSharedOptions
- type ServiceControllerOptions
Constants ¶
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 )
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 ServiceController *ServiceControllerOptions 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 ¶
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 ¶
func (s *CloudProviderOptions) ApplyTo(cfg *cpconfig.CloudProviderConfiguration) error
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 {}
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 ¶
func (o *KubeCloudSharedOptions) ApplyTo(cfg *cpconfig.KubeCloudSharedConfiguration) error
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 ¶
func (o *ServiceControllerOptions) ApplyTo(cfg *serviceconfig.ServiceControllerConfiguration) error
ApplyTo fills up ServiceController config with options.
func (*ServiceControllerOptions) Validate ¶
func (o *ServiceControllerOptions) Validate() []error
Validate checks validation of ServiceControllerOptions.