jiahaojz-onum opened a new issue, #651:
URL: https://github.com/apache/pulsar-helm-chart/issues/651
**Describe the bug**
While trying to mount a volumen in the dekaf deployment there is an
indentation issue in the template causing a log like the following:
`Error: YAML parse error on pulsar/templates/dekaf-deployment.yaml: error
converting YAML to JSON: yaml: line 98: did not find expected key
`
**To Reproduce**
In the charts folder (pulsar-helm-chart/charts/pulsar)
- Create a file called test-values.yaml for example with the following
content:
`components:
dekaf: true
dekaf:
persistence:
storageClass: "gp3"
deployment:
extraEnv:
- name: DEKAF_PUBLIC_BASE_URL
value: "http://dekaf-int-dev.test.com
extraVolumeMounts:
- name: admin-token
mountPath: /pulsar/tokens/admin
readOnly: true
extraVolumes:
- name: admin-token
secret:
secretName: pulsar-token-admin`
Then run `helm template pulsar . -f test-values.yaml --show-only
templates/dekaf-deployment.yaml`
**Expected behavior**
A template renders correctly
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
**Additional context**
It can be fixed by correcting the indentation in
`pulsar-helm-chart/charts/pulsar/templates/dekaf-deployment.yaml` by setting
nindent 6 in the following lane {{- toYaml
.Values.dekaf.deployment.extraVolumes | default list | nindent 8 }}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]