Container Registry backup not able to find S3 bucket

Summary

Getting Bucket not found: registry. Skipping backup of registry ... message when running backup-utility job on task-runner

Steps to reproduce

backup-utility --skip db

Configuration used

registry:
  storage:
    key: connection
    secret: gitlab-registry-secret
s3:
  bucket: gitlab-registry-storage-stash
  accesskey:
  secretkey:
  region: us-east-1
  # regionendpoint: 
  v4auth: true
apiVersion: v1
kind: Secret
metadata:
  name: gitlab-registry-secret
type: Opaque
data:
  connection: czM6CiAgYnVja2V0OiBnaXRsYWItcmVnaXN0cnktc3RvcmFnZS1zdGFzaAogIGFjY2Vzc2tleToKICBzZWNyZXRrZXk6CiAgcmVnaW9uOiB1cy1lYXN0LTEKICAjIHJlZ2lvbmVuZHBvaW50OiAKICB2NGF1dGg6IHRydWUK

Current behavior

It's trying to look for the registry bucket.

Expected behavior

Should look for the gitlab-registry-storage-stash bucket

Versions

  • Chart: 2.0.3
  • Platform:
    • Cloud: EKS
  • Kubernetes:
    • Client: 1.14.2
    • Server: 1.12.6
  • Helm: (helm version)
    • Client: 2.14.0
    • Server: 2.14.0

Relevant logs

git@gitlab-task-runner-8d5564875-xswm7:/$ backup-utility --skip db
WARNING: This version of GitLab depends on gitlab-shell 9.3.0, but you're running Unknown. Please update gitlab-shell.
2019-07-18 18:32:41 +0000 -- Dumping repositories ...
 * root/stash-invest-android ... [DONE]
[SKIPPED] Wiki
 * root/stash-invest-android-config ... [DONE]
[SKIPPED] Wiki
2019-07-18 18:32:41 +0000 -- done
Bucket not found: registry. Skipping backup of registry ...
Dumping uploads ...
done
Dumping artifacts ...
done
Dumping lfs ...
empty
Dumping packages ...
empty
WARNING: This version of GitLab depends on gitlab-shell 9.3.0, but you're running Unknown. Please update gitlab-shell.
Packing up backup tar
WARNING: Module python-magic is not available. Guessing MIME types based on file extensions.
[DONE] Backup can be found at s3://gitlab-backup-storage-stash/1563474749_2019_07_18_12.0.3-ee_gitlab_backup.tar
Edited by Christian Del Pino