diff --git a/helm/core/templates/_pod.tpl b/helm/core/templates/_pod.tpl index 6ffc87f79..eb090916d 100644 --- a/helm/core/templates/_pod.tpl +++ b/helm/core/templates/_pod.tpl @@ -20,11 +20,6 @@ template: {{- end }} {{- include "gateway.selectorLabels" . | nindent 6 }} spec: - {{- if .Values.gateway.imagePullPolicy }} - imagePullPolicy: {{ .Values.gateway.imagePullPolicy }} - {{- else if .Values.global.imagePullPolicy }} - imagePullPolicy: {{ .Values.global.imagePullPolicy }} - {{- end }} {{- with .Values.gateway.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 6 }} @@ -45,6 +40,11 @@ template: containers: - name: higress-gateway image: "{{ .Values.gateway.hub | default .Values.global.hub }}/higress/{{ .Values.gateway.image | default "gateway" }}:{{ .Values.gateway.tag | default .Chart.AppVersion }}" + {{- if .Values.gateway.imagePullPolicy }} + imagePullPolicy: {{ .Values.gateway.imagePullPolicy }} + {{- else if .Values.global.imagePullPolicy }} + imagePullPolicy: {{ .Values.global.imagePullPolicy }} + {{- end }} args: - proxy - router