mirror of
https://github.com/alibaba/higress.git
synced 2026-06-07 19:57:34 +08:00
refactor: unify image customization methods (#687)
This commit is contained in:
@@ -31,11 +31,7 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
{{- if not .Values.global.enableHigressIstio }}
|
{{- if not .Values.global.enableHigressIstio }}
|
||||||
- name: discovery
|
- name: discovery
|
||||||
{{- if contains "/" .Values.pilot.image }}
|
|
||||||
image: "{{ .Values.pilot.image }}"
|
|
||||||
{{- else }}
|
|
||||||
image: "{{ .Values.pilot.hub | default .Values.global.hub }}/{{ .Values.pilot.image | default "pilot" }}:{{ .Values.pilot.tag | default .Chart.AppVersion }}"
|
image: "{{ .Values.pilot.hub | default .Values.global.hub }}/{{ .Values.pilot.image | default "pilot" }}:{{ .Values.pilot.tag | default .Chart.AppVersion }}"
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.global.imagePullPolicy }}
|
{{- if .Values.global.imagePullPolicy }}
|
||||||
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
|
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -184,7 +180,7 @@ spec:
|
|||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.controller.securityContext | nindent 12 }}
|
{{- toYaml .Values.controller.securityContext | nindent 12 }}
|
||||||
image: "{{ .Values.hub }}/{{ .Values.controller.image }}:{{ .Values.controller.tag | default .Chart.AppVersion }}"
|
image: "{{ .Values.controller.hub | default .Values.global.hub }}/{{ .Values.controller.image | default "higress" }}:{{ .Values.controller.tag | default .Chart.AppVersion }}"
|
||||||
args:
|
args:
|
||||||
- "serve"
|
- "serve"
|
||||||
- --gatewaySelectorKey=higress
|
- --gatewaySelectorKey=higress
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: higress-gateway
|
- name: higress-gateway
|
||||||
image: "{{ .Values.hub }}/{{ .Values.gateway.image }}:{{ .Values.gateway.tag | default .Chart.AppVersion }}"
|
image: "{{ .Values.gateway.hub | default .Values.global.hub }}/{{ .Values.gateway.image | default "gateway" }}:{{ .Values.gateway.tag | default .Chart.AppVersion }}"
|
||||||
args:
|
args:
|
||||||
- proxy
|
- proxy
|
||||||
- router
|
- router
|
||||||
|
|||||||
@@ -369,6 +369,8 @@ gateway:
|
|||||||
name: "higress-gateway"
|
name: "higress-gateway"
|
||||||
replicas: 2
|
replicas: 2
|
||||||
image: gateway
|
image: gateway
|
||||||
|
|
||||||
|
hub: higress-registry.cn-hangzhou.cr.aliyuncs.com/higress
|
||||||
tag: ""
|
tag: ""
|
||||||
# revision declares which revision this gateway is a part of
|
# revision declares which revision this gateway is a part of
|
||||||
revision: ""
|
revision: ""
|
||||||
@@ -457,6 +459,8 @@ controller:
|
|||||||
name: "higress-controller"
|
name: "higress-controller"
|
||||||
replicas: 1
|
replicas: 1
|
||||||
image: higress
|
image: higress
|
||||||
|
|
||||||
|
hub: higress-registry.cn-hangzhou.cr.aliyuncs.com/higress
|
||||||
tag: ""
|
tag: ""
|
||||||
env: {}
|
env: {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user