Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { CheckCycle int64 `mapstructure:"check-cycle"` Enable bool `mapstructure:"enable"` TriggerThreashold triggerThreashold `mapstructure:"trigger-threashold"` }
Config is eviction configuration
type Evictioner ¶
type Evictioner struct {
// contains filtered or unexported fields
}
Evictioner deletes pods which need to apply recommendation
func NewEvictioner ¶
func NewEvictioner(checkCycle int64, datahubClnt datahub_v1alpha1.DatahubServiceClient, k8sClienit client.Client, evictCfg Config) *Evictioner
NewEvictioner return Evictioner instance
func (*Evictioner) Start ¶
func (evictioner *Evictioner) Start()
Start checking pods need to apply recommendation
Click to show internal directories.
Click to hide internal directories.