Image pull job is only completed when succeeded + failed = total
This commit is contained in:
parent
995b3c558f
commit
32b780949b
|
|
@ -108,7 +108,7 @@ func (scheduler *Scheduler) imagePullLoopIteration() error {
|
||||||
Type: v1.ConditionTypeFailed,
|
Type: v1.ConditionTypeFailed,
|
||||||
State: v1.ConditionStateTrue,
|
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{
|
newImagePullJobState.Conditions = append(newImagePullJobState.Conditions, v1.Condition{
|
||||||
Type: v1.ConditionTypeCompleted,
|
Type: v1.ConditionTypeCompleted,
|
||||||
State: v1.ConditionStateTrue,
|
State: v1.ConditionStateTrue,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue