Backup CronJob is missing object_store secret
Summary
The task-runner-backup
CronJob is missing the object_store
secret, so backups fail.
Steps to reproduce
Enable the new object_store
configuration (that might even not be necessary) and the backup CronJob, wait for it to trigger.
Configuration used
global:
appConfig:
object_store:
enabled: true
connection:
secret: gitlab-object-store
key: connection
backups:
bucket: backups.gitlab.example.com
gitlab:
task-runner:
backups:
cron:
enabled: true
schedule: "@every 24h"
objectStorage:
config:
secret: gitlab-object-store
key: s3cmd-config
Current behavior
/usr/lib/ruby/2.6.0/psych.rb:577:in `initialize': No such file or directory @ rb_sysopen - /etc/gitlab/objectstorage/object_store (Errno::ENOENT)
from /usr/lib/ruby/2.6.0/psych.rb:577:in `open'
from /usr/lib/ruby/2.6.0/psych.rb:577:in `load_file'
from (erb):36:in `<main>'
from /usr/lib/ruby/2.6.0/erb.rb:901:in `eval'
from /usr/lib/ruby/2.6.0/erb.rb:901:in `result'
from /scripts/set-config:22:in `block in <main>'
from /scripts/set-config:18:in `each'
from /scripts/set-config:18:in `<main>'
Begin parsing .erb files from /var/opt/gitlab/templates
Writing /srv/gitlab/config/cable.yml
Writing /srv/gitlab/config/resque.yml
Writing /srv/gitlab/config/gitlab.yml
Then the backup job fails.
Expected behavior
The backup should work! :-)
Versions
- Chart: 4.3.0
- Platform:
- Self-hosted: Rancher RKE
- Kubernetes:
- Client: 1.18.8
- Server: 1.17.11
- Helm:
- Client: 3.3.0
- Server: n/a
Relevant logs
As above.