Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Menna authored and dweomer committed Jun 22, 2020
1 parent 294fa10 commit 990c403
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/upgrade/handle_batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func (ctl *Controller) handleJobs(ctx context.Context) error {
}
return obj, enqueueOrDelete(jobs, obj, upgradejob.ConditionComplete)
}
// if the job is hasn't failed or completed but the job Node is not on the applying list, consider it running out-of-turn and delete it
if i := sort.SearchStrings(plan.Status.Applying, nodeName); i == len(plan.Status.Applying) ||
(i < len(plan.Status.Applying) && plan.Status.Applying[i] != nodeName) {
return obj, deleteJob(jobs, obj, metav1.DeletePropagationBackground)
Expand Down

0 comments on commit 990c403

Please sign in to comment.