mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 22:53:22 +00:00
rkt: correctly copy container status in GetPods()
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user