undefined variable: $imageCfg after configuring backups
Summary
We are experiencing a chart rendering error when configuring backups with an Azure storage account. We used these instructions to configure backups.
Steps to reproduce
Run helm template with the below configuration.
Configuration used
global:
appConfig:
backups:
bucket: gitlab-backups
tmpBucket: gitlab-backup-tmp-storage
gitlab:
toolbox:
image:
repository: <image repo>
tag: 15.10.0
pullPolicy: IfNotPresent
backups:
objectStorage:
config:
secret: backup-azure-creds
key: config
backend: azure
persistence:
enabled: true
cron:
persistence:
enabled: true
Current behavior
$ helm template gitlab ../gitlab-charts/gitlab-6.10.0-bb.0.tgz -f ../overlays/test/values.yaml > test.yaml
Error: template: gitlab/charts/gitlab/charts/toolbox/templates/backup-job.yaml:96:52: executing "gitlab/charts/gitlab/charts/toolbox/templates/backup-job.yaml" at <$imageCfg>: undefined variable: $imageCfg
Expected behavior
Chart is rendered and exported to test.yaml
Versions
- Chart: 6.10.0
- Kubernetes: (
kubectl version
)- Client: v1.26.1
- Helm: (
helm version
)- Client: v3.10.3