The source project of this merge request has been removed.
fix: reconcile toolbox CronJob
Summary
The Toolbox backup CronJob was not being created, so I added its creation to the reconciliation process.
Testing
Add the following to the CR:
apiVersion: apps.gitlab.com/v1beta1
kind: GitLab
metadata:
name: gitlab
spec:
chart:
values:
gitlab:
toolbox:
backups:
cron:
enabled: true
Validate that the CronJob is created:
2021-12-06T18:33:42.548Z DEBUG controllers.GitLab Creating object {"gitlab": "gitlab.n535b6660", "type": "*v1beta1.CronJob", "reference": "n535b6660/gitlab-toolbox-backup"}
$ kubectl get cronjob -n n535b6660
NAME SCHEDULE SUSPEND ACTIVE LAST SCHEDULE AGE
gitlab-toolbox-backup 0 1 * * * False 0 <none> 3m49s
Edited by Mitchell Nielsen