options

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: Apache-2.0 Imports: 36 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 CsrApproverControllerOptions added in v1.5.0

type CsrApproverControllerOptions struct {
	*config.CsrApproverControllerConfiguration
}

func NewCsrApproverControllerOptions added in v1.5.0

func NewCsrApproverControllerOptions() *CsrApproverControllerOptions

func (*CsrApproverControllerOptions) AddFlags added in v1.5.0

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

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

func (*CsrApproverControllerOptions) ApplyTo added in v1.5.0

ApplyTo fills up nodePool config with options.

func (*CsrApproverControllerOptions) Validate added in v1.5.0

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

Validate checks validation of CsrApproverControllerOptions.

type DaemonPodUpdaterControllerOptions added in v1.5.0

type DaemonPodUpdaterControllerOptions struct {
	*config.DaemonPodUpdaterControllerConfiguration
}

func NewDaemonPodUpdaterControllerOptions added in v1.5.0

func NewDaemonPodUpdaterControllerOptions() *DaemonPodUpdaterControllerOptions

func (*DaemonPodUpdaterControllerOptions) AddFlags added in v1.5.0

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

func (*DaemonPodUpdaterControllerOptions) ApplyTo added in v1.5.0

ApplyTo fills up nodePool config with options.

func (*DaemonPodUpdaterControllerOptions) Validate added in v1.5.0

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

Validate checks validation of DaemonPodUpdaterControllerOptions.

type DelegateLeaseControllerOptions added in v1.5.0

type DelegateLeaseControllerOptions struct {
	*config.DelegateLeaseControllerConfiguration
}

func NewDelegateLeaseControllerOptions added in v1.5.0

func NewDelegateLeaseControllerOptions() *DelegateLeaseControllerOptions

func (*DelegateLeaseControllerOptions) AddFlags added in v1.5.0

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

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

func (*DelegateLeaseControllerOptions) ApplyTo added in v1.5.0

ApplyTo fills up nodePool config with options.

func (*DelegateLeaseControllerOptions) Validate added in v1.5.0

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

Validate checks validation of DelegateLeaseControllerOptions.

type EndpointSliceControllerOptions added in v1.5.0

type EndpointSliceControllerOptions struct {
	*config.ServiceTopologyEndpointSliceControllerConfiguration
}

func NewEndpointSliceControllerOptions added in v1.5.0

func NewEndpointSliceControllerOptions() *EndpointSliceControllerOptions

func (*EndpointSliceControllerOptions) AddFlags added in v1.5.0

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

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

func (*EndpointSliceControllerOptions) ApplyTo added in v1.5.0

ApplyTo fills up servicetopolgy endpointslice config with options.

func (*EndpointSliceControllerOptions) Validate added in v1.5.0

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

Validate checks validation of EndpointSliceControllerOptions.

type EndpointsControllerOptions added in v1.5.0

type EndpointsControllerOptions struct {
	*config.ServiceTopologyEndpointsControllerConfiguration
}

func NewEndpointsControllerOptions added in v1.5.0

func NewEndpointsControllerOptions() *EndpointsControllerOptions

func (*EndpointsControllerOptions) AddFlags added in v1.5.0

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

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

func (*EndpointsControllerOptions) ApplyTo added in v1.5.0

ApplyTo fills up servicetopolgy endpoints config with options.

func (*EndpointsControllerOptions) Validate added in v1.5.0

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

Validate checks validation of EndpointsControllerOptions.

type GatewayDNSControllerOptions added in v1.5.0

type GatewayDNSControllerOptions struct {
	*config.GatewayDNSControllerConfiguration
}

func NewGatewayDNSControllerOptions added in v1.5.0

func NewGatewayDNSControllerOptions() *GatewayDNSControllerOptions

func (*GatewayDNSControllerOptions) AddFlags added in v1.5.0

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

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

func (*GatewayDNSControllerOptions) ApplyTo added in v1.5.0

ApplyTo fills up gateway config with options.

func (*GatewayDNSControllerOptions) Validate added in v1.5.0

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

Validate checks validation of GatewayControllerOptions.

type GatewayInternalSvcControllerOptions added in v1.5.0

type GatewayInternalSvcControllerOptions struct {
	*config.GatewayInternalSvcControllerConfiguration
}

func NewGatewayInternalSvcControllerOptions added in v1.5.0

func NewGatewayInternalSvcControllerOptions() *GatewayInternalSvcControllerOptions

func (*GatewayInternalSvcControllerOptions) AddFlags added in v1.5.0

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

func (*GatewayInternalSvcControllerOptions) ApplyTo added in v1.5.0

ApplyTo fills up gateway config with options.

func (*GatewayInternalSvcControllerOptions) Validate added in v1.5.0

Validate checks validation of GatewayControllerOptions.

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 GatewayPublicSvcControllerOptions added in v1.5.0

type GatewayPublicSvcControllerOptions struct {
	*config.GatewayPublicSvcControllerConfiguration
}

func NewGatewayPublicSvcControllerOptions added in v1.5.0

func NewGatewayPublicSvcControllerOptions() *GatewayPublicSvcControllerOptions

func (*GatewayPublicSvcControllerOptions) AddFlags added in v1.5.0

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

func (*GatewayPublicSvcControllerOptions) ApplyTo added in v1.5.0

ApplyTo fills up gateway config with options.

func (*GatewayPublicSvcControllerOptions) Validate added in v1.5.0

func (g *GatewayPublicSvcControllerOptions) 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 LoadBalancerSetControllerOptions added in v1.5.0

type LoadBalancerSetControllerOptions struct {
	*config.LoadBalancerSetControllerConfiguration
}

func NewLoadBalancerSetControllerOptions added in v1.5.0

func NewLoadBalancerSetControllerOptions() *LoadBalancerSetControllerOptions

func (*LoadBalancerSetControllerOptions) AddFlags added in v1.5.0

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

func (*LoadBalancerSetControllerOptions) ApplyTo added in v1.5.0

ApplyTo fills up poolservice config with options.

func (*LoadBalancerSetControllerOptions) Validate added in v1.5.0

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

Validate checks validation of LoadBalancerSetControllerOptions.

type NodeBucketControllerOptions added in v1.5.0

type NodeBucketControllerOptions struct {
	*config.NodeBucketControllerConfiguration
}

func NewNodeBucketControllerOptions added in v1.5.0

func NewNodeBucketControllerOptions() *NodeBucketControllerOptions

func (*NodeBucketControllerOptions) AddFlags added in v1.5.0

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

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

func (*NodeBucketControllerOptions) ApplyTo added in v1.5.0

ApplyTo fills up nodebucket config with options.

func (*NodeBucketControllerOptions) Validate added in v1.5.0

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

Validate checks validation of NodeBucketControllerOptions.

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 PodBindingControllerOptions added in v1.5.0

type PodBindingControllerOptions struct {
	*config.PodBindingControllerConfiguration
}

func NewPodBindingControllerOptions added in v1.5.0

func NewPodBindingControllerOptions() *PodBindingControllerOptions

func (*PodBindingControllerOptions) AddFlags added in v1.5.0

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

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

func (*PodBindingControllerOptions) ApplyTo added in v1.5.0

ApplyTo fills up nodePool config with options.

func (*PodBindingControllerOptions) Validate added in v1.5.0

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

Validate checks validation of PodBindingControllerOptions.

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 YurtCoordinatorCertControllerOptions added in v1.5.0

type YurtCoordinatorCertControllerOptions struct {
	*config.YurtCoordinatorCertControllerConfiguration
}

func NewYurtCoordinatorCertControllerOptions added in v1.5.0

func NewYurtCoordinatorCertControllerOptions() *YurtCoordinatorCertControllerOptions

func (*YurtCoordinatorCertControllerOptions) AddFlags added in v1.5.0

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

func (*YurtCoordinatorCertControllerOptions) ApplyTo added in v1.5.0

ApplyTo fills up nodePool config with options.

func (*YurtCoordinatorCertControllerOptions) Validate added in v1.5.0

Validate checks validation of YurtAppSetControllerOptions.

type YurtManagerOptions

type YurtManagerOptions struct {
	Generic                       *GenericOptions
	DelegateLeaseController       *DelegateLeaseControllerOptions
	PodBindingController          *PodBindingControllerOptions
	DaemonPodUpdaterController    *DaemonPodUpdaterControllerOptions
	CsrApproverController         *CsrApproverControllerOptions
	NodePoolController            *NodePoolControllerOptions
	YurtStaticSetController       *YurtStaticSetControllerOptions
	YurtAppSetController          *YurtAppSetControllerOptions
	YurtAppDaemonController       *YurtAppDaemonControllerOptions
	PlatformAdminController       *PlatformAdminControllerOptions
	YurtAppOverriderController    *YurtAppOverriderControllerOptions
	NodeLifeCycleController       *NodeLifecycleControllerOptions
	NodeBucketController          *NodeBucketControllerOptions
	EndpointsController           *EndpointsControllerOptions
	EndpointSliceController       *EndpointSliceControllerOptions
	LoadBalancerSetController     *LoadBalancerSetControllerOptions
	YurtCoordinatorCertController *YurtCoordinatorCertControllerOptions
	GatewayPickupController       *GatewayPickupControllerOptions
	GatewayDNSController          *GatewayDNSControllerOptions
	GatewayInternalSvcController  *GatewayInternalSvcControllerOptions
	GatewayPublicSvcController    *GatewayPublicSvcControllerOptions
}

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