kubernetes: k8s.io/kubernetes/cmd/cloud-controller-manager/app/options Index | Files

package options

import "k8s.io/kubernetes/cmd/cloud-controller-manager/app/options"

Index

Package Files

options.go

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
)

func NewDefaultComponentConfig Uses

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

NewDefaultComponentConfig returns cloud-controller manager configuration object.

type CloudControllerManagerOptions Uses

type CloudControllerManagerOptions struct {
    Generic           *cmoptions.GenericControllerManagerConfigurationOptions
    KubeCloudShared   *cmoptions.KubeCloudSharedOptions
    ServiceController *cmoptions.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 Uses

func NewCloudControllerManagerOptions() (*CloudControllerManagerOptions, error)

NewCloudControllerManagerOptions creates a new ExternalCMServer with a default config.

func (*CloudControllerManagerOptions) ApplyTo Uses

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

ApplyTo fills up cloud controller manager config with options.

func (*CloudControllerManagerOptions) Config Uses

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

Config return a cloud controller manager config objective

func (*CloudControllerManagerOptions) Flags Uses

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

Flags returns flags for a specific APIServer by section name

func (*CloudControllerManagerOptions) Validate Uses

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

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

Package options imports 26 packages (graph) and is imported by 19 packages. Updated 2019-11-14. Refresh now. Tools for package owners.