mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 20:00:07 +00:00
When a container restarts before kubelet restarts, containerMap has multiple entries (old exited + new running). GetContainerID() may return the exited container, causing the running check to fail. Fixed by checking if ANY container for the pod/name is running. Also filter terminal pods from podresources since they no longer consume resources, and fix test error handling to avoid exiting Eventually immediately on transient errors. Signed-off-by: Sascha Grunert <sgrunert@redhat.com>