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.
A similar question applies to handleStats and handleSystemContainer, which end up using StatsProvider.GetRawContainerInfo, which calls Manager.GetContainerInfo.
I also observed that the windows implementation of the cAdvisor interface provide empty structs.
Alternatively, if this is not deprecated, is this refactoring pending?