fix(helm): apply imagePullPolicy to controller container and promtail sidecar (#4002)

Signed-off-by: geekspeng <geekspeng@icloud.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
geekspeng
2026-06-22 22:33:03 +08:00
committed by GitHub
parent 9c13b6418c
commit ab0085362c
2 changed files with 8 additions and 1 deletions

View File

@@ -211,7 +211,9 @@ template:
{{- $config := $o11y.promtail }} {{- $config := $o11y.promtail }}
- name: promtail - name: promtail
image: {{ $config.image.repository | default (printf "%s/higress/promtail" .Values.global.hub) }}:{{ $config.image.tag }} image: {{ $config.image.repository | default (printf "%s/higress/promtail" .Values.global.hub) }}:{{ $config.image.tag }}
imagePullPolicy: IfNotPresent {{- if .Values.global.imagePullPolicy }}
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
{{- end }}
args: args:
- -config.file=/etc/promtail/promtail.yaml - -config.file=/etc/promtail/promtail.yaml
env: env:

View File

@@ -39,6 +39,11 @@ spec:
securityContext: securityContext:
{{- toYaml .Values.controller.securityContext | nindent 12 }} {{- toYaml .Values.controller.securityContext | nindent 12 }}
image: "{{ .Values.controller.hub | default .Values.global.hub }}/higress/{{ .Values.controller.image | default "higress" }}:{{ .Values.controller.tag | default .Chart.AppVersion }}" image: "{{ .Values.controller.hub | default .Values.global.hub }}/higress/{{ .Values.controller.image | default "higress" }}:{{ .Values.controller.tag | default .Chart.AppVersion }}"
{{- if .Values.controller.imagePullPolicy }}
imagePullPolicy: {{ .Values.controller.imagePullPolicy }}
{{- else if .Values.global.imagePullPolicy }}
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
{{- end }}
args: args:
- "serve" - "serve"
- --gatewaySelectorKey=higress - --gatewaySelectorKey=higress