mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 05:14:13 +01:00
Add RemovePodsHavingTooManyRestarts strategy
This commit is contained in:
@@ -48,6 +48,7 @@ type DeschedulerStrategy struct {
|
||||
type StrategyParameters struct {
|
||||
NodeResourceUtilizationThresholds NodeResourceUtilizationThresholds
|
||||
NodeAffinityType []string
|
||||
PodsHavingTooManyRestarts PodsHavingTooManyRestarts
|
||||
}
|
||||
|
||||
type Percentage float64
|
||||
@@ -58,3 +59,8 @@ type NodeResourceUtilizationThresholds struct {
|
||||
TargetThresholds ResourceThresholds
|
||||
NumberOfNodes int
|
||||
}
|
||||
|
||||
type PodsHavingTooManyRestarts struct {
|
||||
PodRestartThreshold int32
|
||||
IncludingInitContainers bool
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user