Use image version from Chart.AppVersion
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
2022-12-06 16:01:22 +03:00
parent bbce198fb7
commit 8ac94f8f60
5 changed files with 13 additions and 4 deletions

View File

@ -60,3 +60,12 @@ Create the name of the service account to use
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}
{{- define "hasura.image" -}}
{{- .Values.image.registry }}/{{ .Values.image.repository }}:
{{- if .Values.image.tag }}
{{- .Values.image.tag -}}
{{- else -}}
v{{ .Chart.AppVersion }}.cli-migrations-v3
{{- end }}
{{- end }}

View File

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

View File

@ -34,7 +34,7 @@ spec:
mountPath: /shared-data
containers:
- name: migrate
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
image: {{- include "hasura.image" -}}
command: [ "/bin/sh", "-c" ]
args:
- hasura-cli deploy