mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
rkt: correctly copy container status in GetPods()
This commit is contained in:
parent
742243bb4a
commit
759795592d
@ -808,6 +808,9 @@ func (r *Runtime) GetPods(all bool) ([]*kubecontainer.Pod, error) {
|
||||
glog.Warningf("rkt: Cannot construct pod from unit file: %v.", err)
|
||||
continue
|
||||
}
|
||||
for _, c := range pod.Containers {
|
||||
c.Status = status
|
||||
}
|
||||
pods = append(pods, pod)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user