Werk #16627: kube_persistent_volume_claim: resolve KeyError crash when Volume parameters are configured

Component Checks & agents
Title kube_persistent_volume_claim: resolve KeyError crash when Volume parameters are configured
Date Apr 3, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0b4 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p26 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Before this update, configuring 'Volume parameters' in the PVC check plugin led to a crash. This issue arose because the plugin was not designed to process trend size-related levels, which, however, were anticipated by the general filesystem function handler shared among filesystem-related check plugins. To resolve this, the general function has been modified to bypass trend computation when a trend rule is not set, a scenario always applicable to the PVC check plugin.

To the list of all Werks