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 ¶
func (o *ControllersOptions) ApplyTo(c *controllerconfig.ControllersConfiguration) error
ApplyTo fills up config with options
func (*ControllersOptions) Config ¶
func (o *ControllersOptions) Config() (*controllerconfig.ControllersConfiguration, error)
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 ¶
func (o *GenericControllerOptions) AddFlags(fss *cliflag.NamedFlagSets)
AddFlags adds flags to the specified FlagSet.
func (*GenericControllerOptions) ApplyTo ¶
func (o *GenericControllerOptions) ApplyTo(c *controllerconfig.GenericControllerConfiguration) error
ApplyTo fills up config with options
func (*GenericControllerOptions) Config ¶
func (o *GenericControllerOptions) Config() (*controllerconfig.GenericControllerConfiguration, error)
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
*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 ¶
func (o *LifeCycleOptions) ApplyTo(c *controller.LifeCycleConfig) error
ApplyTo fills up config with options
func (*LifeCycleOptions) Config ¶
func (o *LifeCycleOptions) Config() (*controller.LifeCycleConfig, error)
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.
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.