options

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultUpgradeWorkerImage = "openyurt/node-servant:latest"

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayPickupControllerOptions added in v1.4.0

type GatewayPickupControllerOptions struct {
	*config.GatewayPickupControllerConfiguration
}

func NewGatewayPickupControllerOptions added in v1.4.0

func NewGatewayPickupControllerOptions() *GatewayPickupControllerOptions

func (*GatewayPickupControllerOptions) AddFlags added in v1.4.0

func (g *GatewayPickupControllerOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags related to nodepool for yurt-manager to the specified FlagSet.

func (*GatewayPickupControllerOptions) ApplyTo added in v1.4.0

ApplyTo fills up nodepool config with options.

func (*GatewayPickupControllerOptions) Validate added in v1.4.0

func (g *GatewayPickupControllerOptions) Validate() []error

Validate checks validation of GatewayControllerOptions.

type GenericOptions

type GenericOptions struct {
	*config.GenericConfiguration
}

func NewGenericOptions

func NewGenericOptions() *GenericOptions

func (*GenericOptions) AddFlags

func (o *GenericOptions) AddFlags(fs *pflag.FlagSet, allControllers, disabledByDefaultControllers []string)

AddFlags adds flags related to generic for yurt-manager to the specified FlagSet.

func (*GenericOptions) ApplyTo

func (o *GenericOptions) ApplyTo(cfg *config.GenericConfiguration, controllerAliases map[string]string) error

ApplyTo fills up generic config with options.

func (*GenericOptions) Validate

func (o *GenericOptions) Validate(allControllers []string, controllerAliases map[string]string) []error

Validate checks validation of GenericOptions.

type NodeLifecycleControllerOptions added in v1.4.0

type NodeLifecycleControllerOptions struct {
	*v1alpha1.NodeLifecycleControllerConfiguration
}

NodeLifecycleControllerOptions holds the NodeLifecycleController options.

func NewNodeLifecycleControllerOptions added in v1.4.0

func NewNodeLifecycleControllerOptions() *NodeLifecycleControllerOptions

func (*NodeLifecycleControllerOptions) AddFlags added in v1.4.0

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

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

func (*NodeLifecycleControllerOptions) ApplyTo added in v1.4.0

ApplyTo fills up NodeLifecycleController config with options.

func (*NodeLifecycleControllerOptions) Validate added in v1.4.0

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

Validate checks validation of NodeLifecycleControllerOptions.

type NodePoolControllerOptions

type NodePoolControllerOptions struct {
	*config.NodePoolControllerConfiguration
}

func NewNodePoolControllerOptions

func NewNodePoolControllerOptions() *NodePoolControllerOptions

func (*NodePoolControllerOptions) AddFlags

func (n *NodePoolControllerOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags related to nodepool for yurt-manager to the specified FlagSet.

func (*NodePoolControllerOptions) ApplyTo

ApplyTo fills up nodepool config with options.

func (*NodePoolControllerOptions) Validate

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

Validate checks validation of NodePoolControllerOptions.

type PlatformAdminControllerOptions added in v1.4.0

type PlatformAdminControllerOptions struct {
	*config.PlatformAdminControllerConfiguration
}

func NewPlatformAdminControllerOptions added in v1.4.0

func NewPlatformAdminControllerOptions() *PlatformAdminControllerOptions

func (*PlatformAdminControllerOptions) AddFlags added in v1.4.0

func (n *PlatformAdminControllerOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags related to nodepool for yurt-manager to the specified FlagSet.

func (*PlatformAdminControllerOptions) ApplyTo added in v1.4.0

ApplyTo fills up nodepool config with options.

func (*PlatformAdminControllerOptions) Validate added in v1.4.0

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

Validate checks validation of IoTControllerOptions.

type YurtAppDaemonControllerOptions

type YurtAppDaemonControllerOptions struct {
	*config.YurtAppDaemonControllerConfiguration
}

func NewYurtAppDaemonControllerOptions

func NewYurtAppDaemonControllerOptions() *YurtAppDaemonControllerOptions

func (*YurtAppDaemonControllerOptions) AddFlags

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

AddFlags adds flags related to yurtappdaemon for yurt-manager to the specified FlagSet.

func (*YurtAppDaemonControllerOptions) ApplyTo

ApplyTo fills up yurtappdaemon config with options.

func (*YurtAppDaemonControllerOptions) Validate

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

Validate checks validation of YurtAppDaemonControllerOptions.

type YurtAppOverriderControllerOptions added in v1.4.0

type YurtAppOverriderControllerOptions struct {
	*config.YurtAppOverriderControllerConfiguration
}

func NewYurtAppOverriderControllerOptions added in v1.4.0

func NewYurtAppOverriderControllerOptions() *YurtAppOverriderControllerOptions

func (*YurtAppOverriderControllerOptions) AddFlags added in v1.4.0

AddFlags adds flags related to nodepool for yurt-manager to the specified FlagSet.

func (*YurtAppOverriderControllerOptions) ApplyTo added in v1.4.0

ApplyTo fills up nodepool config with options.

func (*YurtAppOverriderControllerOptions) Validate added in v1.4.0

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

Validate checks validation of YurtAppOverriderControllerOptions.

type YurtAppSetControllerOptions

type YurtAppSetControllerOptions struct {
	*config.YurtAppSetControllerConfiguration
}

func NewYurtAppSetControllerOptions

func NewYurtAppSetControllerOptions() *YurtAppSetControllerOptions

func (*YurtAppSetControllerOptions) AddFlags

func (n *YurtAppSetControllerOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags related to nodepool for yurt-manager to the specified FlagSet.

func (*YurtAppSetControllerOptions) ApplyTo

ApplyTo fills up nodepool config with options.

func (*YurtAppSetControllerOptions) Validate

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

Validate checks validation of YurtAppSetControllerOptions.

type YurtManagerOptions

type YurtManagerOptions struct {
	Generic                    *GenericOptions
	NodePoolController         *NodePoolControllerOptions
	GatewayPickupController    *GatewayPickupControllerOptions
	YurtStaticSetController    *YurtStaticSetControllerOptions
	YurtAppSetController       *YurtAppSetControllerOptions
	YurtAppDaemonController    *YurtAppDaemonControllerOptions
	PlatformAdminController    *PlatformAdminControllerOptions
	YurtAppOverriderController *YurtAppOverriderControllerOptions
	NodeLifeCycleController    *NodeLifecycleControllerOptions
}

YurtManagerOptions is the main context object for the yurt-manager.

func NewYurtManagerOptions

func NewYurtManagerOptions() (*YurtManagerOptions, error)

NewYurtManagerOptions creates a new YurtManagerOptions with a default config.

func (*YurtManagerOptions) ApplyTo

func (y *YurtManagerOptions) ApplyTo(c *config.Config, controllerAliases map[string]string) error

ApplyTo fills up yurt manager config with options.

func (*YurtManagerOptions) Config

func (y *YurtManagerOptions) Config(allControllers []string, controllerAliases map[string]string) (*config.Config, error)

Config return a yurt-manager config objective

func (*YurtManagerOptions) Flags

func (y *YurtManagerOptions) Flags(allControllers, disabledByDefaultControllers []string) cliflag.NamedFlagSets

func (*YurtManagerOptions) Validate

func (y *YurtManagerOptions) Validate(allControllers []string, controllerAliases map[string]string) error

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

type YurtStaticSetControllerOptions

type YurtStaticSetControllerOptions struct {
	*config.YurtStaticSetControllerConfiguration
}

func NewYurtStaticSetControllerOptions

func NewYurtStaticSetControllerOptions() *YurtStaticSetControllerOptions

func (*YurtStaticSetControllerOptions) AddFlags

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

AddFlags adds flags related to yurtstaticset for yurt-manager to the specified FlagSet.

func (*YurtStaticSetControllerOptions) ApplyTo

ApplyTo fills up yurtstaticset config with options.

func (*YurtStaticSetControllerOptions) Validate

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

Validate checks validation of YurtStaticSetControllerOptions.

Jump to

Keyboard shortcuts

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