mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-08-05 11:20:30 +00:00
github.com/google/cadvisor/lib v0.60.2 models the per-subsystem container stats (Cpu, Memory, Network, DiskIo, Processes) as pointers, so a nil again distinguishes "not collected" from a collected zero. Restore the kubelet's original nil-checks in helper.go and cadvisor_stats_provider.go (now equivalent to the pre-lib code), adapt the test fixtures and winstats to build pointer sub-stats, and bump the vendored lib to v0.60.2. Signed-off-by: Davanum Srinivas <davanum@gmail.com>