options

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllersOptions

type ControllersOptions struct {
	*VPAOptions
	*KCCOptions
	*SPDOptions
	*LifeCycleOptions
}

func NewControllersOptions

func NewControllersOptions() *ControllersOptions

func (*ControllersOptions) AddFlags

func (o *ControllersOptions) AddFlags(fss *cliflag.NamedFlagSets)

func (*ControllersOptions) ApplyTo

ApplyTo fills up config with options

func (*ControllersOptions) Config

type GenericControllerOptions

type GenericControllerOptions struct {
	Controllers        []string
	LabelSelector      string
	DynamicGVResources []string

	election.LeaderElectionConfiguration
}

GenericControllerOptions holds the configurations for controller based configurations.

func NewGenericControllerOptions

func NewGenericControllerOptions() *GenericControllerOptions

NewGenericControllerOptions creates a new Options with a default config.

func (*GenericControllerOptions) AddFlags

AddFlags adds flags to the specified FlagSet.

func (*GenericControllerOptions) ApplyTo

ApplyTo fills up config with options

func (*GenericControllerOptions) Config

type HealthzOptions added in v0.2.0

type HealthzOptions struct {
	DryRun        bool
	NodeSelector  string
	AgentSelector map[string]string

	CheckWindow        time.Duration
	UnhealthyPeriods   time.Duration
	AgentUnhealthySecs map[string]int

	HandlePeriod  time.Duration
	AgentHandlers map[string]string

	TaintQPS                 float32
	EvictQPS                 float32
	DisruptionTaintThreshold float32
	DisruptionEvictThreshold float32
}

type KCCOptions

type KCCOptions struct {
	ValidAPIGroupSet []string
}

KCCOptions holds the configurations for katalyst config.

func NewKCCOptions

func NewKCCOptions() *KCCOptions

NewKCCOptions creates a new Options with a default config.

func (*KCCOptions) AddFlags

func (o *KCCOptions) AddFlags(fss *cliflag.NamedFlagSets)

AddFlags adds flags to the specified FlagSet.

func (*KCCOptions) ApplyTo

func (o *KCCOptions) ApplyTo(c *controller.KCCConfig) error

ApplyTo fills up config with options

func (*KCCOptions) Config

func (o *KCCOptions) Config() (*controller.KCCConfig, error)

type LifeCycleOptions

type LifeCycleOptions struct {
	EnableHealthz      bool
	EnableCNCLifecycle bool

	*HealthzOptions
}

LifeCycleOptions holds the configurations for life cycle.

func NewLifeCycleOptions

func NewLifeCycleOptions() *LifeCycleOptions

NewLifeCycleOptions creates a new Options with a default config.

func (*LifeCycleOptions) AddFlags

func (o *LifeCycleOptions) AddFlags(fss *cliflag.NamedFlagSets)

AddFlags adds flags to the specified FlagSet.

func (*LifeCycleOptions) ApplyTo

ApplyTo fills up config with options

func (*LifeCycleOptions) Config

type Options

type Options struct {
	*options.GenericOptions
	// contains filtered or unexported fields
}

Options holds the configurations for controllers.

func NewOptions

func NewOptions() *Options

NewOptions creates a new Options with a default config.

func (*Options) AddFlags

func (o *Options) AddFlags(fss *cliflag.NamedFlagSets)

AddFlags adds flags to the specified FlagSet.

func (*Options) ApplyTo

func (o *Options) ApplyTo(c *config.Configuration) error

ApplyTo fills up config with options

func (*Options) Config

func (o *Options) Config() (*config.Configuration, error)

type ResourceRecommendOptions

type ResourceRecommendOptions struct {
	// time interval of resync VPA
	VPAResyncPeriod time.Duration
}

ResourceRecommendOptions holds the configurations for resource recommend.

type SPDOptions

type SPDOptions struct {
	ResyncPeriod           time.Duration
	SPDWorkloadGVResources []string
	SPDPodLabelIndexerKeys []string
}

SPDOptions holds the configurations for service profile data.

func NewSPDOptions

func NewSPDOptions() *SPDOptions

NewSPDOptions creates a new Options with a default config.

func (*SPDOptions) AddFlags

func (o *SPDOptions) AddFlags(fss *cliflag.NamedFlagSets)

AddFlags adds flags to the specified FlagSet.

func (*SPDOptions) ApplyTo

func (o *SPDOptions) ApplyTo(c *controller.SPDConfig) error

ApplyTo fills up config with options

func (*SPDOptions) Config

func (o *SPDOptions) Config() (*controller.SPDConfig, error)

type VPAOptions

type VPAOptions struct {
	// we use VPAWorkloadGVResources to define those VPA concerned GVRs
	VPAWorkloadGVResources []string
	VPAPodLabelIndexerKeys []string
	// count of workers to sync VPA and VPARec
	VPASyncWorkers    int
	VPARecSyncWorkers int

	VPARecommendationOptions
	ResourceRecommendOptions
}

VPAOptions holds the configurations for vertical pod auto-scaler.

func NewVPAOptions

func NewVPAOptions() *VPAOptions

NewVPAOptions creates a new Options with a default config.

func (*VPAOptions) AddFlags

func (o *VPAOptions) AddFlags(fss *cliflag.NamedFlagSets)

AddFlags adds flags to the specified FlagSet.

func (*VPAOptions) ApplyTo

func (o *VPAOptions) ApplyTo(c *controller.VPAConfig) error

ApplyTo fills up config with options

func (*VPAOptions) Config

func (o *VPAOptions) Config() (*controller.VPAConfig, error)

type VPARecommendationOptions

type VPARecommendationOptions struct {
}

VPARecommendationOptions holds the configurations for vertical pod auto-scaler recommendation.

Jump to

Keyboard shortcuts

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