mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Tolarate negative values when calculating job scale progress
This commit is contained in:
parent
1b950d1e8e
commit
6eb69dfff7
@ -144,7 +144,7 @@ func jobHasDesiredParallelism(jobClient batchclient.JobsGetter, job *batch.Job)
|
|||||||
|
|
||||||
// otherwise count successful
|
// otherwise count successful
|
||||||
progress := *job.Spec.Completions - job.Status.Active - job.Status.Succeeded
|
progress := *job.Spec.Completions - job.Status.Active - job.Status.Succeeded
|
||||||
return progress == 0, nil
|
return progress <= 0, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user