add image registry

This commit is contained in:
2022-03-21 12:54:08 +03:00
parent 1b00d5c001
commit 5bcb54bf31
4 changed files with 6 additions and 5 deletions

View File

@ -31,7 +31,7 @@ spec:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
envFrom:
{{- if .Values.extraEnvVarsSecret }}

View File

@ -22,7 +22,7 @@ spec:
emptyDir: { }
initContainers:
- name: copy
image: "{{ .Values.migrations.image.registry }}/{{ .Values.migrations.image.repository }}:{{ .Values.migrations.image.tag | default "latest" }}"
image: "{{ .Values.migrations.image.registry }}/{{ .Values.migrations.image.registry }}/{{ .Values.migrations.image.repository }}:{{ .Values.migrations.image.tag | default "latest" }}"
command:
- cp
- -R
@ -34,7 +34,7 @@ spec:
mountPath: /shared-data
containers:
- name: migrate
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
command: [ "/bin/sh", "-c" ]
args:
- set -ex;