From 32b780949be6c9a432037d7a08fe69c061808abd Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Wed, 10 Dec 2025 21:27:41 +0100 Subject: [PATCH] Image pull job is only completed when succeeded + failed = total --- internal/controller/scheduler/imagepull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/scheduler/imagepull.go b/internal/controller/scheduler/imagepull.go index 779e708..195113f 100644 --- a/internal/controller/scheduler/imagepull.go +++ b/internal/controller/scheduler/imagepull.go @@ -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,