Werk #17215: kube: Fix Agent exited with code 1: 'Failuretarget' is not a valid JobConditionType

Component Checks & agents
Title kube: Fix Agent exited with code 1: 'Failuretarget' is not a valid JobConditionType
Date Nov 27, 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.0p22 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

In Kubernetes 1.31, the feature JobSuccessPolicy has been enabled by default. With this feature a new JobCondition is exposed via the API, which resulted in the following error:

Agent exited with code 1: 'Failuretarget' is not a valid JobConditionType

This error has been fixed. The new conditions FailureTarget and SuccessCriteriaMet are treated the same as the Failure and Success conditions respectively.

To the list of all Werks