mirror of
https://github.com/alibaba/higress.git
synced 2026-06-26 10:45:25 +08:00
fix(helm): move imagePullPolicy from PodSpec to container level in gateway pod template (#3924)
Signed-off-by: geekspeng <geekspeng@icloud.com>
This commit is contained in:
@@ -20,11 +20,6 @@ template:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- include "gateway.selectorLabels" . | nindent 6 }}
|
{{- include "gateway.selectorLabels" . | nindent 6 }}
|
||||||
spec:
|
spec:
|
||||||
{{- if .Values.gateway.imagePullPolicy }}
|
|
||||||
imagePullPolicy: {{ .Values.gateway.imagePullPolicy }}
|
|
||||||
{{- else if .Values.global.imagePullPolicy }}
|
|
||||||
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.gateway.imagePullSecrets }}
|
{{- with .Values.gateway.imagePullSecrets }}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{- toYaml . | nindent 6 }}
|
{{- toYaml . | nindent 6 }}
|
||||||
@@ -45,6 +40,11 @@ template:
|
|||||||
containers:
|
containers:
|
||||||
- name: higress-gateway
|
- name: higress-gateway
|
||||||
image: "{{ .Values.gateway.hub | default .Values.global.hub }}/higress/{{ .Values.gateway.image | default "gateway" }}:{{ .Values.gateway.tag | default .Chart.AppVersion }}"
|
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:
|
args:
|
||||||
- proxy
|
- proxy
|
||||||
- router
|
- router
|
||||||
|
|||||||
Reference in New Issue
Block a user