Commit f69b4e92 authored by Lantao Liu's avatar Lantao Liu

Fix pod scheduled.

parent 271c267f
......@@ -1377,7 +1377,7 @@ func (kl *Kubelet) generateAPIPodStatus(pod *v1.Pod, podStatus *kubecontainer.Po
if _, oldPodScheduled := podutil.GetPodCondition(&pod.Status, v1.PodScheduled); oldPodScheduled != nil {
s.Conditions = append(s.Conditions, *oldPodScheduled)
}
podutil.UpdatePodCondition(&pod.Status, &v1.PodCondition{
podutil.UpdatePodCondition(s, &v1.PodCondition{
Type: v1.PodScheduled,
Status: v1.ConditionTrue,
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment