Adjust DisruptionTarget condition message to do not include preemptor metadata
This commit is contained in:
@@ -362,7 +362,7 @@ func (ev *Evaluator) prepareCandidate(ctx context.Context, c Candidate, pod *v1.
|
|||||||
WithType(v1.DisruptionTarget).
|
WithType(v1.DisruptionTarget).
|
||||||
WithStatus(v1.ConditionTrue).
|
WithStatus(v1.ConditionTrue).
|
||||||
WithReason(v1.PodReasonPreemptionByScheduler).
|
WithReason(v1.PodReasonPreemptionByScheduler).
|
||||||
WithMessage(fmt.Sprintf("Kube-scheduler: preempting to accommodate a higher priority pod: %s", klog.KObj(pod))).
|
WithMessage(fmt.Sprintf("%s: preempting to accommodate a higher priority pod", pod.Spec.SchedulerName)).
|
||||||
WithLastTransitionTime(metav1.Now()),
|
WithLastTransitionTime(metav1.Now()),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user