diff --git a/charts/pulsar/templates/bookkeeper-cluster-initialize.yaml b/charts/pulsar/templates/bookkeeper-cluster-initialize.yaml index 8b9885c..1f87efd 100755 --- a/charts/pulsar/templates/bookkeeper-cluster-initialize.yaml +++ b/charts/pulsar/templates/bookkeeper-cluster-initialize.yaml @@ -36,7 +36,7 @@ spec: spec: {{- include "pulsar.imagePullSecrets" . | nindent 6 }} serviceAccountName: "{{ template "pulsar.fullname" . }}-{{ .Values.bookkeeper.component }}" - {{- with .Values.pulsar_metadata.nodeSelector }} + {{- if .Values.pulsar_metadata.nodeSelector }} nodeSelector: {{ toYaml .Values.pulsar_metadata.nodeSelector | indent 8 }} {{- end }}