Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 07733504ab7b7d415a5683bf7e28b161c3350bec
https://github.com/tribe29/checkmk/commit/07733504ab7b7d415a5683bf7e28b161c…
Author: Solomon Jacobs <solomon.jacobs(a)tribe29.com>
Date: 2021-11-23 (Tue, 23 Nov 2021)
Changed paths:
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/special_agents/agent_kubernetes/test_agent_kubernetes_api_pods.py
Log Message:
-----------
agent_kube: Fix crash if pods are pending
Currently, agent_kube assumes every pod has an associated node.
This is false, for instance if the pod is pending. The new test checks
whether CoreAPI can handle this case.
* Added Test for non-scheduled pods
* Fixed bugs related to this
Change-Id: I1af250848cb68afd10443a956d738f58d17b3916