Werk #14570: Kube: Fix crash upon specifying power-of-two unit with CPU resources

Komponente Checks & agents
Titel Kube: Fix crash upon specifying power-of-two unit with CPU resources
Datum 03.01.2023
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.0p19 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

Previously, specifying a unit such as

resources:
  cpu: 200Mi

inside an API object would result in crash. With this change, the correct number of CPU cores are computed instead.

Zur Liste aller Werks