Branch: refs/heads/2.1.0
Home:
https://github.com/tribe29/checkmk
Commit: c24a62dfb55514f48385e6c182be62fcd21abffa
https://github.com/tribe29/checkmk/commit/c24a62dfb55514f48385e6c182be62fcd…
Author: Wontek Hong <wontek.hong(a)tribe29.com>
Date: 2022-06-15 (Wed, 15 Jun 2022)
Changed paths:
A .werks/14343
M cmk/base/plugins/agent_based/kube_pod_containers.py
M cmk/base/plugins/agent_based/utils/kube.py
M cmk/special_agents/utils_kubernetes/schemata/api.py
M cmk/special_agents/utils_kubernetes/transform.py
M tests/unit/cmk/base/plugins/agent_based/test_kube_pod_containers.py
Log Message:
-----------
14343 FIX KUBE agent_kube: change ContainerTerminatedState's start and end time to
be optional
Previously, the Kubernetes special agent raised the error "[special_kube] TypeError:
Can not convert
to timestamp: 'None' of type <class 'NoneType’>" when a terminated
container had no information
about either its start or finish time. With this werk, the assumption that the start and
finish
times are always set is removed, and is thus consistent with the Kubernetes
specification.
The check plug-in is also modified to display the time-related information depending on
what
fields are returned.
FEED-6963
Change-Id: Id673d5f0e762d05b5c22f7584081a0ac4a56f8c3