mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Fix pod scheduled.
Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
parent
271c267fff
commit
f69b4e9262
@ -1377,7 +1377,7 @@ func (kl *Kubelet) generateAPIPodStatus(pod *v1.Pod, podStatus *kubecontainer.Po
|
|||||||
if _, oldPodScheduled := podutil.GetPodCondition(&pod.Status, v1.PodScheduled); oldPodScheduled != nil {
|
if _, oldPodScheduled := podutil.GetPodCondition(&pod.Status, v1.PodScheduled); oldPodScheduled != nil {
|
||||||
s.Conditions = append(s.Conditions, *oldPodScheduled)
|
s.Conditions = append(s.Conditions, *oldPodScheduled)
|
||||||
}
|
}
|
||||||
podutil.UpdatePodCondition(&pod.Status, &v1.PodCondition{
|
podutil.UpdatePodCondition(s, &v1.PodCondition{
|
||||||
Type: v1.PodScheduled,
|
Type: v1.PodScheduled,
|
||||||
Status: v1.ConditionTrue,
|
Status: v1.ConditionTrue,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user