options

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 12 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 GatewayControllerOptions

type GatewayControllerOptions struct {
	*config.GatewayControllerConfiguration
}

func NewGatewayControllerOptions

func NewGatewayControllerOptions() *GatewayControllerOptions

func (*GatewayControllerOptions) AddFlags

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

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

func (*GatewayControllerOptions) ApplyTo

ApplyTo fills up nodepool config with options.

func (*GatewayControllerOptions) Validate

func (g *GatewayControllerOptions) 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)

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

func (*GenericOptions) ApplyTo

ApplyTo fills up generic config with options.

func (*GenericOptions) Validate

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

Validate checks validation of GenericOptions.

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 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 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
	GatewayController       *GatewayControllerOptions
	YurtStaticSetController *YurtStaticSetControllerOptions
	YurtAppSetController    *YurtAppSetControllerOptions
	YurtAppDaemonController *YurtAppDaemonControllerOptions
}

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) error

ApplyTo fills up yurt manager config with options.

func (*YurtManagerOptions) Config

func (y *YurtManagerOptions) Config() (*config.Config, error)

Config return a yurt-manager config objective

func (*YurtManagerOptions) Flags

func (*YurtManagerOptions) Validate

func (y *YurtManagerOptions) Validate() 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