• Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • False
    • None
    • False
    • OCPSTRAT-403 - Automated backups of etcd (local destination)
    • ETCD Sprint 239, ETCD Sprint 240

      See the parent story for more context.
      As the first part to this story we need a controller with the following workflow:

      • Watches the `config.openshift.io/v1alpha1 Backup` CR as created by an admin
      • Creates a CronJob for the specified schedule and timezone that would ultimately create `operator.openshift.io/v1alpha1 EtcdBackup` CRs at the desired schedule
      • Updates the CronJob for any changes in the schedule or timezone

      Since we also want to preserve a history of successful and failed backup attempts for the periodic config, the CronJob should utilize cronjob history limits to preserve successful and failed jobs.
      https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#jobs-history-limits

      To begin with we can set this to a reasonable default of 5 successful and 10 failed jobs.

       

            tjungblu@redhat.com Thomas Jungblut
            rhn-coreos-htariq Haseeb Tariq
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: