2 Commits

Author SHA1 Message Date
a801fd1480 Fix include number of args
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2022-12-06 16:03:53 +03:00
8ac94f8f60 Use image version from Chart.AppVersion
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2022-12-06 16:01:22 +03:00
5 changed files with 13 additions and 4 deletions

View File

@ -3,7 +3,7 @@ name: hasura
description: A Helm chart for Kubernetes
type: application
version: 0.2.6
appVersion: v2.16.0
appVersion: 2.16.0
icon: https://raw.githubusercontent.com/hasura/graphql-engine/master/assets/brand/powered_by_hasura_primary_lightbg.svg
maintainers:
- email: me@grachevko.ru

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

View File

@ -9,7 +9,7 @@ image:
repository: hasura/graphql-engine
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: v2.15.0.cli-migrations-v3
tag: ""
pullSecrets: [ ]
extraEnvVarsSecret: ""