Skip to content

Commit 148d4b7

Browse files
committed
add registry portion
1 parent 1798cee commit 148d4b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

charts/metrics-operator/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec:
3333
- name: {{ .Chart.Name }}-init
3434
securityContext:
3535
{{- toYaml .Values.securityContext | nindent 12 }}
36-
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
36+
image: "{{ ternary "" (print (.Values.global).imageRegistry "/") (empty (.Values.global).imageRegistry) }}{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
3737
imagePullPolicy: {{ .Values.image.pullPolicy }}
3838
args:
3939
- init
@@ -108,7 +108,7 @@ spec:
108108
- name: {{ .Chart.Name }}
109109
securityContext:
110110
{{- toYaml .Values.securityContext | nindent 12 }}
111-
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
111+
image: "{{ ternary "" (print (.Values.global).imageRegistry "/") (empty (.Values.global).imageRegistry) }}{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
112112
imagePullPolicy: {{ .Values.image.pullPolicy }}
113113
args:
114114
- start

0 commit comments

Comments
 (0)