Werk #14343: KUBE agent_kube: change ContainerTerminatedState's start and end time to be optional

Komponente Checks & agents
Titel KUBE agent_kube: change ContainerTerminatedState's start and end time to be optional
Datum 09.06.2022
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen
Checkmk versions & editions
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p3 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

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.

Zur Liste aller Werks