Skip to content

Commit ec1328c

Browse files
Merge pull request volcano-sh#29 from thandayuthapani/vk-scheduler
Add event reason check since change in event
2 parents 4b391ab + 537e6aa commit ec1328c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/util.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ func podGroupUnschedulable(ctx *context, pg *kbv1.PodGroup, time time.Time) wait
418418
for _, event := range events.Items {
419419
target := event.InvolvedObject
420420
if target.Name == pg.Name && target.Namespace == pg.Namespace {
421-
if event.Reason == string(kbv1.PodGroupUnschedulableType) &&
421+
if event.Reason == string(kbv1.PodGroupUnschedulableType) || event.Reason == string("FailedScheduling") &&
422422
event.LastTimestamp.After(time) {
423423
return true, nil
424424
}

0 commit comments

Comments
 (0)