Skip to content
Prev Previous commit
Next Next commit
add dispatch duration param
  • Loading branch information
asm582 committed Feb 7, 2023
commit 8c58b84987b8b84b7f2eaf65518a743389ed78fc
5 changes: 4 additions & 1 deletion test/e2e/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -1676,7 +1676,7 @@ func createGenericAWTimeoutWithStatus(context *context, name string) *arbv1.AppW
}
}`)
var schedSpecMin int = 1

var dispatchDurationSeconds int = 10
aw := &arbv1.AppWrapper{
ObjectMeta: metav1.ObjectMeta{
Name: name,
Expand All @@ -1685,6 +1685,9 @@ func createGenericAWTimeoutWithStatus(context *context, name string) *arbv1.AppW
Spec: arbv1.AppWrapperSpec{
SchedSpec: arbv1.SchedulingSpecTemplate{
MinAvailable: schedSpecMin,
dispatchDuration: {
limit: dispatchDurationSeconds
}
},
AggrResources: arbv1.AppWrapperResourceList{
GenericItems: []arbv1.AppWrapperGenericResource{
Expand Down