Skip to content

Commit

Permalink
Fix p.framework.RunPreFilterPlugins method call - returns 3 values
Browse files Browse the repository at this point in the history
  • Loading branch information
kushagra98 committed Jul 17, 2024
1 parent bb80045 commit 11a881e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (p *SchedulerBasedPredicateChecker) FitsAnyNodeMatching(clusterSnapshot clu
defer p.delegatingSharedLister.ResetDelegate()

state := schedulerframework.NewCycleState()
preFilterResult, preFilterStatus := p.framework.RunPreFilterPlugins(context.TODO(), state, pod)
preFilterResult, preFilterStatus, _ := p.framework.RunPreFilterPlugins(context.TODO(), state, pod)
if !preFilterStatus.IsSuccess() {
return "", fmt.Errorf("error running pre filter plugins for pod %s; %s", pod.Name, preFilterStatus.Message())
}
Expand Down Expand Up @@ -149,7 +149,7 @@ func (p *SchedulerBasedPredicateChecker) CheckPredicates(clusterSnapshot cluster
defer p.delegatingSharedLister.ResetDelegate()

state := schedulerframework.NewCycleState()
_, preFilterStatus := p.framework.RunPreFilterPlugins(context.TODO(), state, pod)
_, preFilterStatus, _ := p.framework.RunPreFilterPlugins(context.TODO(), state, pod)
if !preFilterStatus.IsSuccess() {
return NewPredicateError(
InternalPredicateError,
Expand Down

0 comments on commit 11a881e

Please sign in to comment.