The fix for OCPBUGS-9070 introduced specific handling of CronJob resources (https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.26/#cronjob-v1-batch), and the CVO is no longer reconciling them as generic resources. This enables the CVO to check the health of these resources when applying the manifests.
The idea is for the CVO to check the health of the CronJob resources in a similar way it checks for the health of Job resources (https://github.com/openshift/cluster-version-operator/blob/ef063ec3973465fabb535a2aa3709e1636c88328/lib/resourcebuilder/resourcebuilder.go#L183). However, the structure for CronJob is different and would require a new logic for the check. For reference, here is the implementation for the health check for Job resources https://github.com/openshift/cluster-version-operator/blob/ef063ec3973465fabb535a2aa3709e1636c88328/lib/resourcebuilder/batch.go#L45-L79.
Definition of done:
- CVO should check the health of the CronJob resources.
- relates to
-
OTA-827 Map the road towards removing the unstructured manifest handler in CVO
- To Do