mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
fix error message in ReplicaCalculator
This commit is contained in:
parent
ef2edcc94e
commit
d6cd0704ca
@ -209,7 +209,7 @@ func (c *ReplicaCalculator) calcPlainMetricReplicas(metrics metricsclient.PodMet
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(metrics) == 0 {
|
if len(metrics) == 0 {
|
||||||
return 0, 0, fmt.Errorf("did not recieve metrics for any ready pods")
|
return 0, 0, fmt.Errorf("did not receive metrics for any ready pods")
|
||||||
}
|
}
|
||||||
|
|
||||||
usageRatio, utilization := metricsclient.GetMetricUtilizationRatio(metrics, targetUtilization)
|
usageRatio, utilization := metricsclient.GetMetricUtilizationRatio(metrics, targetUtilization)
|
||||||
|
Loading…
Reference in New Issue
Block a user