Skip to content

Add GitLab Backup implementation

Edmund Ochieng requested to merge ochienged/gitlab-operator:backup into master

Current work done on the backup functionality of the operator. Backup logic has been moved from the operator into a separate helper image called backup-control to be able to leverage the scheduling logic already built into Kubernetes/Openshift.

The backup resource will take the name of the gitlab instance to backup and the schedule of when to backup.

apiVersion: gitlab.com/v1beta1
kind: Backup
metadata:
  name: example
spec:
  # Add fields here
  instance: example
  schedule: 30 1 1 * *

The schedule can either be the cron job format time that is supported by Kubernetes or could be the keyword now. To initiate a backup immediately.

Merge request reports