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

@@ -539,6 +539,11 @@ func newConfigFactory(client *clientset.Clientset, hardPodAffinitySymmetricWeigh
type fakeExtender struct {
isBinder bool
interestedPodName string
ignorable bool
}
func (f *fakeExtender) IsIgnorable() bool {
return f.ignorable
}
func (f *fakeExtender) ProcessPreemption(