compliance-operator icon indicating copy to clipboard operation
compliance-operator copied to clipboard

Remove unused beta API usage for `CronJob`

Open rhmdnd opened this issue 1 year ago • 1 comments

The operator uses the Kubernetes CronJob API for running scans on a schedule.

We implemented a compatibility shim so that the operator would work on versions of OpenShift that used the beta CronJob API and the stable API.

https://github.com/ComplianceAsCode/compliance-operator/commit/e16c78f711c59ba3259128befe1afb46a3161a6d

The Kubernetes community graduated the CronJob API to stable in version 1.21.

At this point, there are no supported versions of OpenShift that use version 1.21, so we can consider removing this compatibility code and just rely on the stable CronJob interface.

https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/

rhmdnd avatar Aug 29 '23 17:08 rhmdnd