Skip to content

Commit

Permalink
New traits for node states
Browse files Browse the repository at this point in the history
  • Loading branch information
DingoEatingFuzz committed May 30, 2018
1 parent 03aee6f commit 9aabe13
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions ui/mirage/factories/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,26 @@ export default Factory.extend({
},
}),

forcedDraining: trait({
drain: true,
schedulingEligibility: 'ineligible',
drainStrategy: {
Deadline: -1,
ForceDeadline: '0001-01-01T00:00:00Z',
IgnoreSystemJobs: faker.random.boolean(),
},
}),

noDeadlineDraining: trait({
drain: true,
schedulingEligibility: 'ineligible',
drainStrategy: {
Deadline: 0,
ForceDeadline: '0001-01-01T00:00:00Z',
IgnoreSystemJobs: faker.random.boolean(),
},
}),

drainStrategy: null,

drivers: makeDrivers,
Expand Down

0 comments on commit 9aabe13

Please sign in to comment.