mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 22:40:35 +00:00
This fixes the pod with restartable init containers to have a proper phase after the pod sandbox re-creation. Currently, the `runtime.PodStatus` cannot retrieve the active container statuses, which are the container statuses associated with the current pod sandbox. This adds the `ActiveContainerStatuses` to `runtime.PodStatus`, allowing it to include the container statuses of the current pod sandbox, and fixes the kubelet to correctly set the pod Phase to `Pending` when no active regular containers are present.