Update FitError as a message component into the PodConditionUpdater.

This commit is contained in:
jayunit100
2017-01-05 16:23:23 -05:00
parent de59ede6b2
commit 9cdc4ae0ad
3 changed files with 26 additions and 10 deletions

View File

@@ -98,9 +98,10 @@ func (s *Scheduler) scheduleOne() {
s.config.Error(pod, err)
s.config.Recorder.Eventf(pod, v1.EventTypeWarning, "FailedScheduling", "%v", err)
s.config.PodConditionUpdater.Update(pod, &v1.PodCondition{
Type: v1.PodScheduled,
Status: v1.ConditionFalse,
Reason: v1.PodReasonUnschedulable,
Type: v1.PodScheduled,
Status: v1.ConditionFalse,
Reason: v1.PodReasonUnschedulable,
Message: err.Error(),
})
return
}