Files
Davanum Srinivas 32ed4e9b9f lib/model: make ContainerStats sub-stats pointers to convey collection presence
The collapsed model used value types for the per-subsystem stats (Cpu,
Memory, Network, DiskIo, Processes), which cannot express "not collected"
versus "collected and zero". Restore pointer fields so a nil signals the
subsystem was not collected, matching the info/v2 shape the kubelet relies
on. Handlers allocate each pointer when they collect the subsystem; the
metrics collector and the v1/v2 REST converters nil-guard their reads.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-06-24 13:35:57 -04:00
..