diff --git a/charts/pulsar/templates/bookkeeper-cluster-initialize.yaml b/charts/pulsar/templates/bookkeeper-cluster-initialize.yaml index e2bdd72e..77fbac2c 100755 --- a/charts/pulsar/templates/bookkeeper-cluster-initialize.yaml +++ b/charts/pulsar/templates/bookkeeper-cluster-initialize.yaml @@ -40,12 +40,12 @@ spec: spec: {{- include "pulsar.imagePullSecrets" . | nindent 6 }} serviceAccountName: "{{ template "pulsar.fullname" . }}-{{ .Values.bookkeeper.component }}" - {{- if .Values.pulsar_metadata.nodeSelector }} nodeSelector: + {{- if .Values.pulsar_metadata.nodeSelector }} {{ toYaml .Values.pulsar_metadata.nodeSelector | indent 8 }} {{- end }} - {{- with .Values.pulsar_metadata.tolerations }} tolerations: + {{- if .Values.pulsar_metadata.tolerations }} {{ toYaml .Values.pulsar_metadata.tolerations | indent 8 }} {{- end }} initContainers: