Documentation ¶
Index ¶
- Constants
- func NewDefaultComponentConfig() (*ccmconfig.CloudControllerManagerConfiguration, error)
- func ResyncPeriod(c *cloudcontrollerconfig.Config) func() time.Duration
- type CloudControllerManagerOptions
- func (o *CloudControllerManagerOptions) ApplyTo(c *cloudcontrollerconfig.Config, userAgent string, ...) error
- func (o *CloudControllerManagerOptions) Config(allControllers, disabledByDefaultControllers []string, ...) (*cloudcontrollerconfig.Config, error)
- func (o *CloudControllerManagerOptions) Flags(allControllers, disabledByDefaultControllers []string) cliflag.NamedFlagSets
- func (o *CloudControllerManagerOptions) Validate(allControllers, disabledByDefaultControllers []string, ...) error
- type DynamicReloadingOptions
- type NodeIPAMControllerOptions
Constants ¶
const ( // CloudControllerManagerUserAgent is the userAgent name when starting cloud-controller managers. CloudControllerManagerUserAgent = "cloud-controller-manager" // 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() (*ccmconfig.CloudControllerManagerConfiguration, error)
NewDefaultComponentConfig returns cloud-controller manager configuration object.
func ResyncPeriod ¶ added in v1.0.0
func ResyncPeriod(c *cloudcontrollerconfig.Config) func() time.Duration
ResyncPeriod computes the time interval a shared informer waits before resyncing with the api server
Types ¶
type CloudControllerManagerOptions ¶
type CloudControllerManagerOptions struct { Generic *cmoptions.GenericControllerManagerConfigurationOptions ServiceController *cpoptions.ServiceControllerOptions NodeIPAMController *NodeIPAMControllerOptions 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 DynamicReloading *DynamicReloadingOptions }
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 *cloudcontrollerconfig.Config, userAgent string, allControllers, disabledByDefaultControllers []string, controllerAliases map[string]string) error
ApplyTo fills up cloud controller manager config with options.
func (*CloudControllerManagerOptions) Config ¶
func (o *CloudControllerManagerOptions) Config( allControllers, disabledByDefaultControllers []string, controllerAliases map[string]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
type DynamicReloadingOptions ¶ added in v1.0.0
type DynamicReloadingOptions struct { EnableDynamicReloading bool CloudConfigSecretName string CloudConfigSecretNamespace string CloudConfigKey string }
DynamicReloadingOptions holds the configurations of the dynamic reloading logics
func (*DynamicReloadingOptions) AddFlags ¶ added in v1.0.0
func (o *DynamicReloadingOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to dynamic reloading for controller manager to the specified FlagSet
func (*DynamicReloadingOptions) ApplyTo ¶ added in v1.0.0
func (o *DynamicReloadingOptions) ApplyTo(cfg *app.DynamicReloadingConfig) error
ApplyTo fills up dynamic reloading config with options
func (*DynamicReloadingOptions) Validate ¶ added in v1.0.0
func (o *DynamicReloadingOptions) Validate() []error
Validate checks validation of DynamicReloadingOptions
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
func (o *NodeIPAMControllerOptions) ApplyTo(cfg *nodeipamconfig.NodeIPAMControllerConfiguration) error
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.