Don't evaluate extra nodes if there's no score plugin defined

This commit is contained in:
Aleksandra Malinowska
2023-11-27 09:50:57 +01:00
parent 0cabb55f7c
commit e19be41f58
5 changed files with 34 additions and 0 deletions

View File

@@ -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