diff --git a/pkg/scheduler/framework/plugins/defaultpreemption/default_preemption.go b/pkg/scheduler/framework/plugins/defaultpreemption/default_preemption.go index 660f557bb48..4ead255aca6 100644 --- a/pkg/scheduler/framework/plugins/defaultpreemption/default_preemption.go +++ b/pkg/scheduler/framework/plugins/defaultpreemption/default_preemption.go @@ -177,8 +177,7 @@ func (pl *DefaultPreemption) SelectVictimsOnNode( // No potential victims are found, and so we don't need to evaluate the node again since its state didn't change. if len(potentialVictims) == 0 { - message := fmt.Sprintf("No preemption victims found for incoming pod") - return nil, 0, framework.NewStatus(framework.UnschedulableAndUnresolvable, message) + return nil, 0, framework.NewStatus(framework.UnschedulableAndUnresolvable, "No preemption victims found for incoming pod") } // If the new pod does not fit after removing all the lower priority pods,