diff --git a/pkg/api/types.go b/pkg/api/types.go index 5cd936003..7339e3535 100644 --- a/pkg/api/types.go +++ b/pkg/api/types.go @@ -52,7 +52,7 @@ type StrategyParameters struct { NodeResourceUtilizationThresholds NodeResourceUtilizationThresholds } -type Percentage int +type Percentage float64 type ResourceThresholds map[v1.ResourceName]Percentage type NodeResourceUtilizationThresholds struct { diff --git a/pkg/api/v1alpha1/types.go b/pkg/api/v1alpha1/types.go index 70cf52889..fd95df7ec 100644 --- a/pkg/api/v1alpha1/types.go +++ b/pkg/api/v1alpha1/types.go @@ -52,7 +52,7 @@ type StrategyParameters struct { NodeResourceUtilizationThresholds NodeResourceUtilizationThresholds `json:"nodeResourceUtilizationThresholds,omitempty"` } -type Percentage int +type Percentage float64 type ResourceThresholds map[v1.ResourceName]Percentage type NodeResourceUtilizationThresholds struct {