Don't evaluate extra nodes if there's no score plugin defined
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user