I wonder what this endpoint is used for. Is it just legacy?
I ask this because I see it using a cAdvisor method (Manager.DockerContainer) directly and a cAdvisor type (v1.ContainerInfo), which is directly serialized. I would expect them to use the CRI stats and to return some kubelet type.
I also observed that the windows implementation of the cAdvisor interface provide empty structs.
Alternatively, if this is not deprecated, is this refactoring pending?