Files
kubernetes/pkg
Kir Kolyshkin f1aee7e049 kubelet/cm: GetResourceStats -> MemoryUsage
Commit cc50aa9dfb introduced GetResourceStats, a method which collected
all the statistics from various cgroup controllers, only to discard all
of the info collected except a single value (memory usage).

While one may argue that this method can potentially be used from other
places, this did not happen since it was added 4+ years ago.

Let's streamline this code and only collect what we need, i.e. memory
usage. Rename the method accordingly.

While at it, fix pkg/kubelet/cm/cgroup_manager_unsupported.go to not
instantiate a new error every time a method is called.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2021-05-23 20:43:52 -07:00
..
2021-02-28 15:17:29 -08:00
2021-04-21 11:31:49 +02:00
2021-04-21 11:31:49 +02:00
2021-02-28 15:17:29 -08:00
2021-03-30 23:02:09 +02:00
2021-02-28 15:17:29 -08:00
2021-04-13 08:46:24 +08:00
2021-05-13 20:51:36 +08:00
2021-02-28 15:17:29 -08:00