Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewControllerRecommendationInfoMap ¶ added in v0.3.30
func NewControllerRecommendationInfoMap(client client.Client, podRecommendations []*datahub_recommendations.PodRecommendation) map[string]*controllerRecommendationInfo
NewControllerRecommendationInfoMap returns
Types ¶
type Config ¶
type Config struct { CheckCycle int64 `mapstructure:"checkCycle"` Enable bool `mapstructure:"enable"` PurgeContainerCPUMemory bool `mapstructure:"purgeContainerCpuMemory"` }
Config is eviction configuration
type EvictionRestriction ¶ added in v0.3.28
func NewEvictionRestriction ¶ added in v0.3.28
func NewEvictionRestriction(client client.Client, maxUnavailable string, triggerThreshold triggerThreshold, podRecommendations []*datahub_recommendations.PodRecommendation) EvictionRestriction
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_client.DatahubServiceClient, k8sClienit client.Client, evictCfg Config, purgeContainerCPUMemory bool, clusterID string) *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.