admiraltyio / admiralty

A system of Kubernetes controllers that intelligently schedules workloads across clusters.
https://admiralty.io
Apache License 2.0
673 stars 87 forks source link

Filter pod statuses reported back to containers which exist in proxy pod #206

Closed liggitt closed 3 months ago

liggitt commented 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.