Add Ignorable flag to extender

Ignore extender in generic scheduler

Add test to verify the ignorable flag

Fix warning msg
This commit is contained in:
Harry Zhang
2018-03-19 12:15:24 -07:00
parent 3538676841
commit 7f04129736
7 changed files with 76 additions and 7 deletions

View File

@@ -64,6 +64,10 @@ type SchedulerExtender interface {
// SupportsPreemption returns if the scheduler extender support preemption or not.
SupportsPreemption() bool
// IsIgnorable returns true indicates scheduling should not fail when this extender
// is unavailable. This gives scheduler ability to fail fast and tolerate non-critical extenders as well.
IsIgnorable() bool
}
// ScheduleAlgorithm is an interface implemented by things that know how to schedule pods