[Controller] Fix backup and restore process
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
-
Deploy Operator to cluster:
# replace 'example.com' with an active domain TAG=fix-minio CLEANUP=no DOMAIN=example.com ./scripts/test.sh
-
Wait until the Webservice pods are fully running
kubectl get deploy gitlab-webservice-default -n gitlab-system
-
Navigate to
gitlab.example.com
create some sample data (projects, issues, etc). -
Create a backup:
kubectl exec <Task Runner pod name> -it -- backup-utility
-
Delete the sample data you created before.
-
Restore the backup:
kubectl exec <Task Runner pod name> -it -- backup-utility --restore -t <timestamp>_<version>
-
Confirm the sample data is restored via
gitlab.example.com
Edited by Mitchell Nielsen