Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 14cb6056726b9a17c831e32255e04c50db6b83cc
https://github.com/tribe29/checkmk/commit/14cb6056726b9a17c831e32255e04c50d…
Author: Wontek Hong <wontek.hong(a)tribe29.com>
Date: 2022-01-05 (Wed, 05 Jan 2022)
Changed paths:
M cmk/base/plugins/agent_based/kube_cpu_load.py
M cmk/base/plugins/agent_based/kube_memory.py
M cmk/base/plugins/agent_based/utils/k8s.py
M cmk/base/plugins/agent_based/utils/kube.py
M cmk/special_agents/agent_kube.py
M cmk/special_agents/utils_kubernetes/schemata/api.py
M cmk/special_agents/utils_kubernetes/schemata/section.py
M cmk/special_agents/utils_kubernetes/transform.py
M tests/unit/cmk/base/plugins/agent_based/test_kube_cpu_load.py
M tests/unit/cmk/base/plugins/agent_based/test_kube_memory.py
M tests/unit/cmk/special_agents/agent_kubernetes/test_agent_kubernetes_api_pods.py
M
tests/unit/cmk/special_agents/agent_kubernetes/test_agent_kubernetes_section_schemas.py
Log Message:
-----------
agent_kube: restructure cpu & memory resources section
The aggregation of the resources is now done in the Pod class,
and no longer by a transform function. Moreover, the new aggregation
takes into account our new understanding of a limit value set to
zero, and introduces the corresponding typing.
The plugins kube_cpu_resources and kube_memory have been updated
accordingly. kube_memory shows the same behaviour as before, except
it now treats limit values of 0 as unspecified values.
kube_cpu_resources shows the aggregated values rather than
infinity, if values are unspecified.
The two affected plugins will be reworked, see CMK-8891, CMK-8890.
Co-authored-by: Solomon Jacobs <solomon.jacobs(a)tribe29.com>
Change-Id: I721dfb989a66d6d13c8022f31616a4492b4842f2