Skip to content

Commit

Permalink
Merge pull request volcano-sh#29 from thandayuthapani/vk-scheduler
Browse files Browse the repository at this point in the history
Add event reason check since change in event
  • Loading branch information
volcano-sh-bot authored Jun 12, 2019
2 parents 4b391ab + 537e6aa commit ec1328c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ func podGroupUnschedulable(ctx *context, pg *kbv1.PodGroup, time time.Time) wait
for _, event := range events.Items {
target := event.InvolvedObject
if target.Name == pg.Name && target.Namespace == pg.Namespace {
if event.Reason == string(kbv1.PodGroupUnschedulableType) &&
if event.Reason == string(kbv1.PodGroupUnschedulableType) || event.Reason == string("FailedScheduling") &&
event.LastTimestamp.After(time) {
return true, nil
}
Expand Down

0 comments on commit ec1328c

Please sign in to comment.