diff --git a/charts/gateway-helm/templates/_helpers.tpl b/charts/gateway-helm/templates/_helpers.tpl index bc285bf0fa5..0998d0a1b1d 100755 --- a/charts/gateway-helm/templates/_helpers.tpl +++ b/charts/gateway-helm/templates/_helpers.tpl @@ -72,10 +72,10 @@ docker.io/envoyproxy/gateway:{{ .Chart.Version }} {{- end }} {{- define "eg.image.pullSecrets" -}} -{{- if .Values.deployment.envoyGateway.imagePullSecrets }} +{{- if .Values.deployment.envoyGateway.imagePullSecrets -}} imagePullSecrets: {{ toYaml .Values.deployment.envoyGateway.imagePullSecrets }} -{{- else if .Values.global.images.envoyGateway.imagePullSecrets }} +{{- else if .Values.global.images.envoyGateway.imagePullSecrets -}} imagePullSecrets: {{ toYaml .Values.global.images.envoyGateway.imagePullSecrets }} {{- end }}