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

@@ -91,6 +91,7 @@ type fakeExtender struct {
interestedPodName string
ignorable bool
gotBind bool
isPrioritizer bool
}
func (f *fakeExtender) Name() string {
@@ -140,6 +141,10 @@ func (f *fakeExtender) IsInterested(pod *v1.Pod) bool {
return pod != nil && pod.Name == f.interestedPodName
}
func (f *fakeExtender) IsPrioritizer() bool {
return f.isPrioritizer
}
type falseMapPlugin struct{}
func newFalseMapPlugin() frameworkruntime.PluginFactory {