Skip to content

Commit 437179a

Browse files
committed
Do not include scheduler name in the preemption event message
1 parent 6882e76 commit 437179a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/scheduler/framework/preemption/preemption.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,7 @@ func (ev *Evaluator) prepareCandidate(ctx context.Context, c Candidate, pod *v1.
378378
return
379379
}
380380
}
381-
fh.EventRecorder().Eventf(victim, pod, v1.EventTypeNormal, "Preempted", "Preempting", "Preempted by a pod scheduled by %s on node %v",
382-
pod.Spec.SchedulerName, c.Name())
381+
fh.EventRecorder().Eventf(victim, pod, v1.EventTypeNormal, "Preempted", "Preempting", "Preempted by a pod on node %v", c.Name())
383382
}
384383

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

0 commit comments

Comments
 (0)