Skip to content

Commit

Permalink
🐛 Fix detect container 1+ image pull errors. (konveyor#683)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel authored Jul 2, 2024
1 parent 4648a9c commit 2ba93e2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions task/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,7 @@ func (r *Task) podPending(pod *core.Pod) {
status = append(
status,
pod.Status.ContainerStatuses...)
started := 0
for _, status := range status {
state := status.State
if state.Waiting != nil {
Expand All @@ -1258,11 +1259,13 @@ func (r *Task) podPending(pod *core.Pod) {
continue
}
if *status.Started {
r.Event(PodRunning)
r.State = Running
return
started++
}
}
if started > 0 {
r.Event(PodRunning)
r.State = Running
}
}

// Cancel the task.
Expand Down

0 comments on commit 2ba93e2

Please sign in to comment.