Skip to content

Commit

Permalink
Merge pull request kubernetes#25741 from fgrzadkowski/unschedulable_pod
Browse files Browse the repository at this point in the history
Stop setting Message when updating PodScheduled condition
  • Loading branch information
fgrzadkowski committed May 20, 2016
2 parents 0bc2f47 + 9cba3fc commit ab10484
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions plugin/pkg/scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit ab10484

Please sign in to comment.