mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Merge pull request #25741 from fgrzadkowski/unschedulable_pod
Stop setting Message when updating PodScheduled condition
This commit is contained in:
commit
ab10484330
@ -101,10 +101,9 @@ func (s *Scheduler) scheduleOne() {
|
|||||||
s.config.Error(pod, err)
|
s.config.Error(pod, err)
|
||||||
s.config.Recorder.Eventf(pod, api.EventTypeWarning, "FailedScheduling", "%v", err)
|
s.config.Recorder.Eventf(pod, api.EventTypeWarning, "FailedScheduling", "%v", err)
|
||||||
s.config.PodConditionUpdater.Update(pod, &api.PodCondition{
|
s.config.PodConditionUpdater.Update(pod, &api.PodCondition{
|
||||||
Type: api.PodScheduled,
|
Type: api.PodScheduled,
|
||||||
Status: api.ConditionFalse,
|
Status: api.ConditionFalse,
|
||||||
Reason: "Unschedulable",
|
Reason: "Unschedulable",
|
||||||
Message: err.Error(),
|
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -142,10 +141,9 @@ func (s *Scheduler) scheduleOne() {
|
|||||||
s.config.Error(pod, err)
|
s.config.Error(pod, err)
|
||||||
s.config.Recorder.Eventf(pod, api.EventTypeNormal, "FailedScheduling", "Binding rejected: %v", err)
|
s.config.Recorder.Eventf(pod, api.EventTypeNormal, "FailedScheduling", "Binding rejected: %v", err)
|
||||||
s.config.PodConditionUpdater.Update(pod, &api.PodCondition{
|
s.config.PodConditionUpdater.Update(pod, &api.PodCondition{
|
||||||
Type: api.PodScheduled,
|
Type: api.PodScheduled,
|
||||||
Status: api.ConditionFalse,
|
Status: api.ConditionFalse,
|
||||||
Reason: "BindingRejected",
|
Reason: "BindingRejected",
|
||||||
Message: err.Error(),
|
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user