mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 00:34:10 -04:00
Stop setting Message when updating PodScheduled condition
This commit is contained in:
parent
1cba05574b
commit
9cba3fc5ae
1 changed files with 6 additions and 8 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue