mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
spelling mistake rectified
This commit is contained in:
parent
f380ef8b61
commit
80384bbb55
@ -79,7 +79,7 @@ func (c *ReplicaCalculator) GetResourceReplicas(ctx context.Context, currentRepl
|
|||||||
removeMetricsForPods(metrics, ignoredPods)
|
removeMetricsForPods(metrics, ignoredPods)
|
||||||
removeMetricsForPods(metrics, unreadyPods)
|
removeMetricsForPods(metrics, unreadyPods)
|
||||||
if len(metrics) == 0 {
|
if len(metrics) == 0 {
|
||||||
return 0, 0, 0, time.Time{}, fmt.Errorf("did not receive metrics for targetted pods (pods might be unready)")
|
return 0, 0, 0, time.Time{}, fmt.Errorf("did not receive metrics for targeted pods (pods might be unready)")
|
||||||
}
|
}
|
||||||
|
|
||||||
requests, err := calculatePodRequests(podList, container, resource)
|
requests, err := calculatePodRequests(podList, container, resource)
|
||||||
@ -191,7 +191,7 @@ func (c *ReplicaCalculator) calcPlainMetricReplicas(metrics metricsclient.PodMet
|
|||||||
removeMetricsForPods(metrics, unreadyPods)
|
removeMetricsForPods(metrics, unreadyPods)
|
||||||
|
|
||||||
if len(metrics) == 0 {
|
if len(metrics) == 0 {
|
||||||
return 0, 0, fmt.Errorf("did not receive metrics for targetted pods (pods might be unready)")
|
return 0, 0, fmt.Errorf("did not receive metrics for targeted pods (pods might be unready)")
|
||||||
}
|
}
|
||||||
|
|
||||||
usageRatio, usage := metricsclient.GetMetricUsageRatio(metrics, targetUsage)
|
usageRatio, usage := metricsclient.GetMetricUsageRatio(metrics, targetUsage)
|
||||||
|
Loading…
Reference in New Issue
Block a user