options

package
v0.7.4-premiumv2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CloudControllerManagerPort is the default port for the cloud controller manager server.
	// This value may be overridden by a flag at startup.
	CloudControllerManagerPort = 10263
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudNodeManagerOptions

type CloudNodeManagerOptions struct {
	Master              string
	Kubeconfig          string
	NodeName            string
	CloudConfigFilePath string

	SecureServing   *apiserveroptions.SecureServingOptionsWithLoopback
	InsecureServing *apiserveroptions.DeprecatedInsecureServingOptionsWithLoopback
	Authentication  *apiserveroptions.DelegatingAuthenticationOptions
	Authorization   *apiserveroptions.DelegatingAuthorizationOptions

	// NodeStatusUpdateFrequency is the frequency at which the manager updates nodes' status
	NodeStatusUpdateFrequency metav1.Duration
	// minResyncPeriod is the resync period in reflectors; will be random between
	// minResyncPeriod and 2*minResyncPeriod.
	MinResyncPeriod metav1.Duration
	// ClientConnection specifies the kubeconfig file and client connection
	// settings for the proxy server to use when communicating with the apiserver.
	ClientConnection componentbaseconfig.ClientConnectionConfiguration
	// WaitForRoutes indicates whether the node should wait for routes to be created on Azure.
	// If true, the node condition "NodeNetworkUnavailable" would be set to true on initialization.
	WaitForRoutes bool

	UseInstanceMetadata bool

	// WindowsService should be set to true if cloud-node-manager is running as a service on Windows.
	// Its corresponding flag only gets registered in Windows builds
	WindowsService bool
}

CloudNodeManagerOptions is the main context object for the controller manager.

func NewCloudNodeManagerOptions

func NewCloudNodeManagerOptions() (*CloudNodeManagerOptions, error)

NewCloudNodeManagerOptions creates a new CloudNodeManagerOptions with a default config.

func (*CloudNodeManagerOptions) ApplyTo

func (o *CloudNodeManagerOptions) ApplyTo(c *cloudnodeconfig.Config, userAgent string) error

ApplyTo fills up cloud controller manager config with options.

func (*CloudNodeManagerOptions) Config

Config return a cloud controller manager config objective

func (*CloudNodeManagerOptions) Flags

Flags returns flags for a specific APIServer by section name

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL