diff --git a/plugin/pkg/scheduler/scheduler.go b/plugin/pkg/scheduler/scheduler.go index 236b6ae2f00..c209d4b4f61 100644 --- a/plugin/pkg/scheduler/scheduler.go +++ b/plugin/pkg/scheduler/scheduler.go @@ -101,10 +101,9 @@ func (s *Scheduler) scheduleOne() { s.config.Error(pod, err) s.config.Recorder.Eventf(pod, api.EventTypeWarning, "FailedScheduling", "%v", err) s.config.PodConditionUpdater.Update(pod, &api.PodCondition{ - Type: api.PodScheduled, - Status: api.ConditionFalse, - Reason: "Unschedulable", - Message: err.Error(), + Type: api.PodScheduled, + Status: api.ConditionFalse, + Reason: "Unschedulable", }) return } @@ -142,10 +141,9 @@ func (s *Scheduler) scheduleOne() { s.config.Error(pod, err) s.config.Recorder.Eventf(pod, api.EventTypeNormal, "FailedScheduling", "Binding rejected: %v", err) s.config.PodConditionUpdater.Update(pod, &api.PodCondition{ - Type: api.PodScheduled, - Status: api.ConditionFalse, - Reason: "BindingRejected", - Message: err.Error(), + Type: api.PodScheduled, + Status: api.ConditionFalse, + Reason: "BindingRejected", }) return }