Uploaded image for project: 'OpenShift Over the Air'
  1. OpenShift Over the Air
  2. OTA-957

CVO should check the health of CronJob resources

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None
    • False
    • None
    • False
    • OTA 255

      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.

            Unassigned Unassigned
            dhurta@redhat.com David Hurta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: