mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 02:41:25 +00:00
Detailed printed error message
Signed-off-by: HaoJie Liu <liuhaojie@beyondcent.com>
This commit is contained in:
parent
4569e646ef
commit
5639a4000f
@ -415,7 +415,7 @@ func (p *PriorityQueue) AddUnschedulableIfNotPresent(pInfo *framework.QueuedPodI
|
||||
}
|
||||
if p.moveRequestCycle >= podSchedulingCycle {
|
||||
if err := p.podBackoffQ.Add(pInfo); err != nil {
|
||||
return fmt.Errorf("error adding pod %v to the backoff queue: %v", pod.Name, err)
|
||||
return fmt.Errorf("error adding pod %v to the backoff queue: %v", klog.KObj(pod), err)
|
||||
}
|
||||
metrics.SchedulerQueueIncomingPods.WithLabelValues("backoff", ScheduleAttemptFailure).Inc()
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user