apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: community-operators-catalog-rollout
  annotations:
    target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
spec:
  concurrencyPolicy: Forbid
  schedule: CRON_SCHEDULE
  startingDeadlineSeconds: 120
  successfulJobsHistoryLimit: 1
  failedJobsHistoryLimit: 1
  jobTemplate:
    spec:
      backoffLimit: 2
      activeDeadlineSeconds: 600
      template:
        spec:
          serviceAccountName: catalog-rollout
          restartPolicy: Never
          containers:
          - name: rollout
            image: CLI_IMAGE
            imagePullPolicy: IfNotPresent
            command:
            - oc
            - rollout
            - restart
            - deployment/community-operators-catalog
