error in toolbox chart when priorityClassName is specified
Summary
There seems to be a chart template error for the toolbox component. If cron backups are enabled and the priorityClassName field is specified, there is a helm error. I believe it is the following line in backup-job.yaml:
"{{- include "gitlab.priorityClassName" . | nindent 6 }}"
The indentation is incorrect and causes an error. The indentation should be 10.
This error seems to start with chart 6.6.0 and continue to 6.6.6, but I did not check the versions in-between.
Steps to reproduce
This assumes the configuration used (specified below) is saved at the given path.
helm repo add gitlab https://charts.gitlab.io
helm repo update
helm template example gitlab/gitlab --namespace example --version 6.6.0 -f ~/gitlab-priorityClassName-broken.yaml
Configuration used
certmanager-issuer:
email: nobody@example.com
gitlab:
toolbox:
priorityClassName: my-class-name
backups:
cron:
enabled: true
Current behavior
Error: YAML parse error on gitlab/charts/gitlab/charts/toolbox/templates/backup-job.yaml: error converting YAML to JSON: yaml: line 40: mapping values are not allowed in this context
If I comment out the config line with priorityClassName
then the chart renders fine.
Expected behavior
I am expecting to see the complete output yaml for the entire chart on stdout.
Versions
- Chart: 6.6.0 and 6.6.6
- Platform:
- Cloud: OCI
- Self-hosted: Kubernetes
- Kubernetes: (
kubectl version
)- Client: v1.21.14
- Server: v1.14.10
- Helm: (
helm version
)- Client: v3.10.3
- Server: N/A
Relevant logs
(Please provide any relevant log snippets you have collected, using code blocks (```) to format)