Skip to content

[Controller] Fix backup and restore process

Mitchell Nielsen requested to merge fix-minio into master

Summary

  • Adds the relevant s3cfg parameters that were missing before
  • Adds an ingress for MinIO for feature parity with the charts as well as support for communicating with MinIO over TLS

Closes https://gitlab.com/gitlab-org/gl-openshift/gitlab-operator/-/issues/121

Testing instructions

  1. Deploy Operator to cluster:

    # replace 'example.com' with an active domain
    TAG=fix-minio CLEANUP=no DOMAIN=example.com ./scripts/test.sh
  2. Wait until the Webservice pods are fully running

    kubectl get deploy gitlab-webservice-default -n gitlab-system
  3. Navigate to gitlab.example.com create some sample data (projects, issues, etc).

  4. Create a backup: kubectl exec <Task Runner pod name> -it -- backup-utility

  5. Delete the sample data you created before.

  6. Restore the backup: kubectl exec <Task Runner pod name> -it -- backup-utility --restore -t <timestamp>_<version>

  7. Confirm the sample data is restored via gitlab.example.com

Edited by Mitchell Nielsen

Merge request reports

Loading