package options
import "k8s.io/kubernetes/cmd/cloud-controller-manager/app/options"
Index ¶
- Constants
- func NewDefaultComponentConfig(insecurePort int32) (componentconfig.CloudControllerManagerConfiguration, error)
- type CloudControllerManagerOptions
- func NewCloudControllerManagerOptions() (*CloudControllerManagerOptions, error)
- func (o *CloudControllerManagerOptions) AddFlags(fs *pflag.FlagSet)
- func (o *CloudControllerManagerOptions) ApplyTo(c *cloudcontrollerconfig.Config, userAgent string) error
- func (o *CloudControllerManagerOptions) Config() (*cloudcontrollerconfig.Config, error)
- func (o *CloudControllerManagerOptions) Validate() error
Constants ¶
const ( // CloudControllerManagerUserAgent is the userAgent name when starting cloud-controller managers. CloudControllerManagerUserAgent = "cloud-controller-manager" )
Functions ¶
func NewDefaultComponentConfig ¶
func NewDefaultComponentConfig(insecurePort int32) (componentconfig.CloudControllerManagerConfiguration, error)
NewDefaultComponentConfig returns cloud-controller manager configuration object.
Types ¶
type CloudControllerManagerOptions ¶
type CloudControllerManagerOptions struct { CloudProvider *cmoptions.CloudProviderOptions Debugging *cmoptions.DebuggingOptions GenericComponent *cmoptions.GenericComponentConfigOptions *cmoptions.KubeCloudSharedOptions ServiceController *cmoptions.ServiceControllerOptions SecureServing *apiserveroptions.SecureServingOptions // TODO: remove insecure serving mode InsecureServing *cmoptions.InsecureServingOptions 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) AddFlags ¶
func (o *CloudControllerManagerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags for a specific ExternalCMServer to the specified FlagSet
func (*CloudControllerManagerOptions) ApplyTo ¶
func (o *CloudControllerManagerOptions) ApplyTo(c *cloudcontrollerconfig.Config, userAgent string) error
ApplyTo fills up cloud controller manager config with options.
func (*CloudControllerManagerOptions) Config ¶
func (o *CloudControllerManagerOptions) Config() (*cloudcontrollerconfig.Config, error)
Config return a cloud controller manager config objective
func (*CloudControllerManagerOptions) Validate ¶
func (o *CloudControllerManagerOptions) Validate() error
Validate is used to validate config before launching the cloud controller manager
Source Files ¶
options.go
- Version
- v1.11.11-beta.0
- Published
- May 1, 2019
- Platform
- js/wasm
- Imports
- 22 packages
- Last checked
- 1 minute ago –
Tools for package owners.