Documentation
¶
Index ¶
Constants ¶
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 ¶
func (g *GatewayControllerOptions) ApplyTo(cfg *config.GatewayControllerConfiguration) error
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 ¶
func (o *GenericOptions) ApplyTo(cfg *config.GenericConfiguration) error
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 ¶
func (o *NodePoolControllerOptions) ApplyTo(cfg *config.NodePoolControllerConfiguration) error
ApplyTo fills up nodepool config with options.
func (*NodePoolControllerOptions) Validate ¶
func (o *NodePoolControllerOptions) Validate() []error
Validate checks validation of NodePoolControllerOptions.
type StaticPodControllerOptions ¶
type StaticPodControllerOptions struct {
*config.StaticPodControllerConfiguration
}
func NewStaticPodControllerOptions ¶
func NewStaticPodControllerOptions() *StaticPodControllerOptions
func (*StaticPodControllerOptions) AddFlags ¶
func (o *StaticPodControllerOptions) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags related to staticpod for yurt-manager to the specified FlagSet.
func (*StaticPodControllerOptions) ApplyTo ¶
func (o *StaticPodControllerOptions) ApplyTo(cfg *config.StaticPodControllerConfiguration) error
ApplyTo fills up staticpod config with options.
func (*StaticPodControllerOptions) Validate ¶
func (o *StaticPodControllerOptions) Validate() []error
Validate checks validation of StaticPodControllerOptions.
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 ¶
func (o *YurtAppDaemonControllerOptions) ApplyTo(cfg *config.YurtAppDaemonControllerConfiguration) error
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 ¶
func (o *YurtAppSetControllerOptions) ApplyTo(cfg *config.YurtAppSetControllerConfiguration) error
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 StaticPodController *StaticPodControllerOptions 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 (y *YurtManagerOptions) Flags() cliflag.NamedFlagSets
func (*YurtManagerOptions) Validate ¶
func (y *YurtManagerOptions) Validate() error
Validate is used to validate the options and config before launching the yurt-manager