Closed liggitt closed 3 months ago
If extra containers are injected, the status for those containers is getting reported back into the proxy pod status.
This confuses or breaks clients reading pod status expecting every named container status to correlate to a named container in pod spec (for example, https://github.com/kubernetes/kubernetes/pull/124906).
This PR prunes out container statuses for named containers which do not exist in the proxy pod.
If extra containers are injected, the status for those containers is getting reported back into the proxy pod status.
This confuses or breaks clients reading pod status expecting every named container status to correlate to a named container in pod spec (for example, https://github.com/kubernetes/kubernetes/pull/124906).
This PR prunes out container statuses for named containers which do not exist in the proxy pod.