mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
Tolarate negative values when calculating job scale progress
This commit is contained in:
@@ -144,7 +144,7 @@ func jobHasDesiredParallelism(jobClient batchclient.JobsGetter, job *batch.Job)
|
||||
|
||||
// otherwise count successful
|
||||
progress := *job.Spec.Completions - job.Status.Active - job.Status.Succeeded
|
||||
return progress == 0, nil
|
||||
return progress <= 0, nil
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user