Skip to content

Commit

Permalink
for update scheduler framework
Browse files Browse the repository at this point in the history
  • Loading branch information
daimaxiaxie committed Jul 20, 2024
1 parent e6ad6e5 commit d5f4367
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (p *SchedulerBasedPredicateChecker) FitsAnyNodeMatching(clusterSnapshot clu

fwk := p.frameworkForPod(pod)
state := schedulerframework.NewCycleState()
preFilterResult, preFilterStatus := fwk.RunPreFilterPlugins(context.TODO(), state, pod)
preFilterResult, preFilterStatus, _ := fwk.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 @@ -163,7 +163,7 @@ func (p *SchedulerBasedPredicateChecker) CheckPredicates(clusterSnapshot cluster

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

0 comments on commit d5f4367

Please sign in to comment.