Skip to content

Commit 4319ab2

Browse files
authored
Merge pull request kubernetes#89219 from chendave/misspelling
Trival fix: update the description on the pod preemption
2 parents a26f50a + a9d82e7 commit 4319ab2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/scheduler/scheduler.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ func (sched *Scheduler) preempt(ctx context.Context, prof *profile.Profile, stat
412412
// Make a call to update nominated node name of the pod on the API server.
413413
err = sched.podPreemptor.setNominatedNodeName(preemptor, nodeName)
414414
if err != nil {
415-
klog.Errorf("Error in preemption process. Cannot set 'NominatedPod' on pod %v/%v: %v", preemptor.Namespace, preemptor.Name, err)
415+
klog.Errorf("Error in preemption process. Cannot set 'NominatedNodeName' on pod %v/%v: %v", preemptor.Namespace, preemptor.Name, err)
416416
sched.SchedulingQueue.DeleteNominatedPodIfExists(preemptor)
417417
return "", err
418418
}
@@ -435,11 +435,11 @@ func (sched *Scheduler) preempt(ctx context.Context, prof *profile.Profile, stat
435435
// be nil when a pod with nominated node name is eligible to preempt again,
436436
// but preemption logic does not find any node for it. In that case Preempt()
437437
// function of generic_scheduler.go returns the pod itself for removal of
438-
// the 'NominatedPod' field.
438+
// the 'NominatedNodeName' field.
439439
for _, p := range nominatedPodsToClear {
440440
rErr := sched.podPreemptor.removeNominatedNodeName(p)
441441
if rErr != nil {
442-
klog.Errorf("Cannot remove 'NominatedPod' field of pod: %v", rErr)
442+
klog.Errorf("Cannot remove 'NominatedNodeName' field of pod: %v", rErr)
443443
// We do not return as this error is not critical.
444444
}
445445
}

0 commit comments

Comments
 (0)