Toolbox add-on
Status: Implemented Issue: none Parent: GitLab components
Goal
An administrator turns on the Toolbox of an instance, in the resource or in the Bridge UI, with the storage its backups go to, so that backup and restore work without writing chart values. For the design, see ADR 40.
Requirements
spec.components.toolbox.enabledturns the Toolbox on. Leaving the entry out keeps the Toolbox off, unlessspec.chart.valuesturn it on.spec.components.toolbox.backups.storage.secretRefreferences the Secret holding the configuration of the backup storage, in the format of its backend.backupsis required while the Toolbox is on.backups.storage.backendselectss3,gcs, orazure, and defaults tos3.gcpProjectis required forgcs, and the API server rejects it for any other backend.backups.scheduletakes a cron schedule, and turns on scheduled backups. Leaving it unset takes no scheduled backups.- No storage configuration is stored in the resource.
- The Operator creates no bucket.
- The form shows the Toolbox as the Toolbox add-on. Its enable switch unlocks a backup storage
group, all-or-nothing and reported before any request is sent, with the backend, and the GCP
project for
gcsonly, and an optional schedule.
Out of scope
- Provisioning the bucket.
- Backing up the registry or OpenBao databases, persistence of the Toolbox, and every other Toolbox
setting. They stay reachable through
spec.chart.values. - Running a backup or a restore from the Bridge UI.
FAQ
- Why is the Toolbox off by default? The requester asked for it, to match the registry. Without
backup storage, its backups fail. An instance that had a Toolbox loses it, and with it
gitlab-rails console, untilspec.components.toolboxorspec.chart.valuesturn it on. - What happens to backups configured in
spec.chart.values? They stop, with their CronJob, unless the free-form values also setgitlab.toolbox.enabled: true. Before, the chart default ran the Toolbox, so those values never set it. - Why does the Toolbox not use
spec.objectStorage? The chart reads backup storage from a configuration of its own, in the format of the backup tool, not from the consolidated object storage connection. - Why is the Toolbox an add-on rather than a component switch? Backup and restore need settings of their own, like the registry.
Was this page helpful?