Don't evaluate extra nodes if there's no score plugin defined
This commit is contained in:
@@ -380,6 +380,11 @@ func (f *FakeExtender) IsBinder() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// IsPrioritizer returns true if there are any prioritizers.
|
||||
func (f *FakeExtender) IsPrioritizer() bool {
|
||||
return len(f.Prioritizers) > 0
|
||||
}
|
||||
|
||||
// IsInterested returns a bool indicating whether this extender is interested in this Pod.
|
||||
func (f *FakeExtender) IsInterested(pod *v1.Pod) bool {
|
||||
return !f.UnInterested
|
||||
|
Reference in New Issue
Block a user