fix federated-hpa plain metric calc
Signed-off-by: zach593 <zach_li@outlook.com>
This commit is contained in:
parent
8680ff333f
commit
fe0febbf1f
|
@ -189,7 +189,7 @@ func (c *ReplicaCalculator) calcPlainMetricReplicas(metrics metricsclient.PodMet
|
|||
for podName := range missingPods {
|
||||
metrics[podName] = metricsclient.PodMetric{Value: targetUsage}
|
||||
}
|
||||
} else {
|
||||
} else if usageRatio > 1.0 {
|
||||
// on a scale-up, treat missing pods as using 0% of the resource request
|
||||
for podName := range missingPods {
|
||||
metrics[podName] = metricsclient.PodMetric{Value: 0}
|
||||
|
|
Loading…
Reference in New Issue