diff --git a/bitnami/elasticsearch/templates/_helpers.tpl b/bitnami/elasticsearch/templates/_helpers.tpl index 8d60667eca..ee9f425553 100644 --- a/bitnami/elasticsearch/templates/_helpers.tpl +++ b/bitnami/elasticsearch/templates/_helpers.tpl @@ -129,8 +129,7 @@ Also, we can not use a single if because lazy evaluation is not an option {{- if .Values.global }} {{- if .Values.global.imagePullSecrets }} imagePullSecrets: -{{- range -.Values.global.imagePullSecrets }} +{{- range .Values.global.imagePullSecrets }} - name: {{ . }} {{- end }} {{- else if or .Values.image.pullSecrets .Values.metrics.image.pullSecrets }} @@ -151,4 +150,4 @@ imagePullSecrets: - name: {{ . }} {{- end }} {{- end -}} -{{- end -}} \ No newline at end of file +{{- end -}}