Skip to content

Commit

Permalink
Do not include scheduler name in the preemption event message
Browse files Browse the repository at this point in the history
  • Loading branch information
mimowo committed Jan 12, 2023
1 parent 5b7b949 commit d23d4af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/scheduler/framework/preemption/preemption.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,7 @@ func (ev *Evaluator) prepareCandidate(ctx context.Context, c Candidate, pod *v1.
return
}
}
fh.EventRecorder().Eventf(victim, pod, v1.EventTypeNormal, "Preempted", "Preempting", "Preempted by a pod scheduled by %s on node %v",
pod.Spec.SchedulerName, c.Name())
fh.EventRecorder().Eventf(victim, pod, v1.EventTypeNormal, "Preempted", "Preempting", "Preempted by a pod on node %v", c.Name())
}

fh.Parallelizer().Until(ctx, len(c.Victims().Pods), preemptPod, ev.PluginName)
Expand Down

0 comments on commit d23d4af

Please sign in to comment.