jvellaft opened a new issue, #681:
URL: https://github.com/apache/pulsar-helm-chart/issues/681
**Describe the bug**
Rendering of the `pulsar-manager-cluster-initialize.yaml` template fails
when `Values.pulsar_metadata.nodeSelector` and
`Values.pulsar_metadata.tolerations` are true
**To Reproduce**
Steps to reproduce the behavior:
1. Set `pulsar_manager` component to **true** in `values.yaml`
2. Add `node_selector` and `tolerations` to the `pulsar_metadata` block in
`values.yaml`
3. Install Helm chart using the custom values.yaml file
**Expected behavior**
Helm chart installation is successful
**Error**
```
Error: INSTALLATION FAILED: YAML parse error on
pulsar/templates/pulsar-manager-cluster-initialize.yaml: error converting YAML
to JSON: yaml: line 44: did not find expected key
helm.go:92: 2026-04-30 16:54:11.883543 +0200 CEST m=+1.326042855 [debug]
error converting YAML to JSON: yaml: line 44: did not find expected key
```
**Additional context**
The solution is to fix the indentation of lines 47 and 51 as per the below:
```
spec:
{{- include "pulsar.imagePullSecrets" . | nindent 6 }}
nodeSelector:
{{- if .Values.pulsar_metadata.nodeSelector }}
{{ toYaml .Values.pulsar_metadata.nodeSelector | indent 8 }}
{{- end }}
tolerations:
{{- if .Values.pulsar_metadata.tolerations }}
{{ toYaml .Values.pulsar_metadata.tolerations | indent 8 }}
{{- end }}
```
--
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]