mirror of
https://github.com/cirruslabs/orchard.git
synced 2026-09-30 03:51:43 +02:00
Image pull job is only completed when succeeded + failed = total
This commit is contained in:
@@ -108,7 +108,7 @@ func (scheduler *Scheduler) imagePullLoopIteration() error {
|
||||
Type: v1.ConditionTypeFailed,
|
||||
State: v1.ConditionStateTrue,
|
||||
})
|
||||
} else if (newImagePullJobState.Progressing + newImagePullJobState.Succeeded + newImagePullJobState.Failed) == newImagePullJobState.Total {
|
||||
} else if (newImagePullJobState.Succeeded + newImagePullJobState.Failed) == newImagePullJobState.Total {
|
||||
newImagePullJobState.Conditions = append(newImagePullJobState.Conditions, v1.Condition{
|
||||
Type: v1.ConditionTypeCompleted,
|
||||
State: v1.ConditionStateTrue,
|
||||
|
||||
Reference in New Issue
Block a user