Uploaded image for project: 'OpenShift Etcd'
  1. OpenShift Etcd
  2. ETCD-443 Add controller for periodic etcd backups
  3. ETCD-447

Operator cmd used by CronJob to create EtcdBackup CRs

XMLWordPrintable

    • 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:

      Along with the periodic backup controller that creates the CronJob, we would need to provide the workload or Go command for the CronJob to execute i.e run inside the pod that is created periodically by the CronJob.

      This cmd e.g "create-etcdbackup" effectively creates a new `operator.openshift.io/v1alpha1 EtcdBackup` CR via the following workflow:

      • Read the Backup CR to get the pvcName (and anything else) required to populate an `EtcdBackup` CR. Or easier yet the periodic controller can simply set all the required inputs to this command in the CronJob's container spec. 
      • Create the `operator.openshift.io/v1alpha1 EtcdBackup` CR. The CR name should be the same as the Job instance that's running the cmd. The cmd should also set the ownerRef of the CR to be that Job. That information can be exposed to the cmd via envvars on the Job's metadata fields.

              rhn-coreos-htariq Haseeb Tariq
              rhn-coreos-htariq Haseeb Tariq
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: