mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Adjust DisruptionTarget condition message to do not include preemptor metadata
This commit is contained in:
parent
cf7a3c5bbb
commit
bdf58ce2eb
@ -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()),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user