options

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package options provides the flags used for the controller manager.

Index

Constants

View Source
const (
	// YurtControllerManagerUserAgent is the userAgent name when starting yurt-controller managers.
	YurtControllerManagerUserAgent = "yurt-controller-manager"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeLifecycleControllerOptions

type NodeLifecycleControllerOptions struct {
	*nodelifecycleconfig.NodeLifecycleControllerConfiguration
}

NodeLifecycleControllerOptions holds the NodeLifecycleController options.

func (*NodeLifecycleControllerOptions) AddFlags

func (o *NodeLifecycleControllerOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags related to NodeLifecycleController for controller manager to the specified FlagSet.

func (*NodeLifecycleControllerOptions) ApplyTo

ApplyTo fills up NodeLifecycleController config with options.

func (*NodeLifecycleControllerOptions) Validate

func (o *NodeLifecycleControllerOptions) Validate() []error

Validate checks validation of NodeLifecycleControllerOptions.

type YurtControllerManagerOptions

type YurtControllerManagerOptions struct {
	Generic                 *cmoptions.GenericControllerManagerConfigurationOptions
	NodeLifecycleController *NodeLifecycleControllerOptions
	Master                  string
	Kubeconfig              string
	Version                 bool
}

YurtControllerManagerOptions is the main context object for the kube-controller manager.

func NewYurtControllerManagerOptions

func NewYurtControllerManagerOptions() (*YurtControllerManagerOptions, error)

NewYurtControllerManagerOptions creates a new YurtControllerManagerOptions with a default config.

func (*YurtControllerManagerOptions) ApplyTo

ApplyTo fills up controller manager config with options.

func (YurtControllerManagerOptions) Config

func (s YurtControllerManagerOptions) Config(allControllers []string, disabledByDefaultControllers []string) (*yurtcontrollerconfig.Config, error)

Config return a controller manager config objective

func (*YurtControllerManagerOptions) Flags

func (s *YurtControllerManagerOptions) Flags(allControllers []string, disabledByDefaultControllers []string) cliflag.NamedFlagSets

Flags returns flags for a specific APIServer by section name

func (*YurtControllerManagerOptions) Validate

func (s *YurtControllerManagerOptions) Validate(allControllers []string, disabledByDefaultControllers []string) error

Validate is used to validate the options and config before launching the controller manager

Jump to

Keyboard shortcuts

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