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

Add number of nodes thershold to node utilization strategies.

This commit is contained in:
Avesh Agarwal
2017-08-04 14:01:55 -04:00
parent 79985395d5
commit b2bfb0e24f
2 changed files with 4 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ import (
"time"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/v1"
)
type ReschedulerPolicy struct {
@@ -53,9 +53,10 @@ type StrategyParameters struct {
}
type Percentage int
type ResourceThresholds map[api.ResourceName]Percentage
type ResourceThresholds map[v1.ResourceName]Percentage
type NodeResourceUtilizationThresholds struct {
Thresholds ResourceThresholds
TargetThresholds ResourceThresholds
NumberOfNodes int
}