1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 05:14:13 +01:00

feat(LowNodeUtilization): useDeviationThresholds, redo of #473

[751]: normalize Percentage in nodeutilization and clean the tests
This commit is contained in:
HelmutLety
2022-03-01 14:15:33 +01:00
committed by helmutlety
parent 07bbdc61c4
commit 2ea65e69dc
8 changed files with 162 additions and 23 deletions

View File

@@ -95,9 +95,10 @@ type Percentage float64
type ResourceThresholds map[v1.ResourceName]Percentage
type NodeResourceUtilizationThresholds struct {
Thresholds ResourceThresholds
TargetThresholds ResourceThresholds
NumberOfNodes int
UseDeviationThresholds bool
Thresholds ResourceThresholds
TargetThresholds ResourceThresholds
NumberOfNodes int
}
type PodsHavingTooManyRestarts struct {