add preemption info in scheduling failed event

This commit is contained in:
Alex Wang
2022-02-01 00:37:16 +08:00
parent 2a2b294c99
commit 52275fc831
6 changed files with 38 additions and 25 deletions

View File

@@ -468,6 +468,7 @@ func (sched *Scheduler) scheduleOne(ctx context.Context) {
if status.Code() == framework.Error {
klog.ErrorS(nil, "Status after running PostFilter plugins for pod", "pod", klog.KObj(pod), "status", status)
} else {
fitError.Diagnosis.PostFilterMsg = status.Message()
klog.V(5).InfoS("Status after running PostFilter plugins for pod", "pod", klog.KObj(pod), "status", status)
}
if result != nil {