mirror of https://github.com/k3s-io/k3s
Merge pull request #25741 from fgrzadkowski/unschedulable_pod
Stop setting Message when updating PodScheduled conditionpull/6/head
commit
ab10484330
|
@ -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 New Issue