Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
a801fd1480
|
|||
8ac94f8f60
|
|||
bbce198fb7
|
|||
f432a87166
|
@ -3,7 +3,7 @@ name: hasura
|
|||||||
description: A Helm chart for Kubernetes
|
description: A Helm chart for Kubernetes
|
||||||
type: application
|
type: application
|
||||||
version: 0.2.6
|
version: 0.2.6
|
||||||
appVersion: v2.15.1
|
appVersion: 2.16.0
|
||||||
icon: https://raw.githubusercontent.com/hasura/graphql-engine/master/assets/brand/powered_by_hasura_primary_lightbg.svg
|
icon: https://raw.githubusercontent.com/hasura/graphql-engine/master/assets/brand/powered_by_hasura_primary_lightbg.svg
|
||||||
maintainers:
|
maintainers:
|
||||||
- email: me@grachevko.ru
|
- email: me@grachevko.ru
|
||||||
|
@ -60,3 +60,12 @@ Create the name of the service account to use
|
|||||||
{{- default "default" .Values.serviceAccount.name }}
|
{{- default "default" .Values.serviceAccount.name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- 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 }}
|
||||||
|
@ -31,7 +31,7 @@ spec:
|
|||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
{{- 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 }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
envFrom:
|
envFrom:
|
||||||
{{- if .Values.extraEnvVarsSecret }}
|
{{- if .Values.extraEnvVarsSecret }}
|
||||||
|
@ -34,13 +34,10 @@ spec:
|
|||||||
mountPath: /shared-data
|
mountPath: /shared-data
|
||||||
containers:
|
containers:
|
||||||
- name: migrate
|
- name: migrate
|
||||||
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
image: {{ include "hasura.image" . }}
|
||||||
command: [ "/bin/sh", "-c" ]
|
command: [ "/bin/sh", "-c" ]
|
||||||
args:
|
args:
|
||||||
- set -ex;
|
- hasura-cli deploy
|
||||||
hasura-cli metadata apply;
|
|
||||||
hasura-cli migrate apply --all-databases;
|
|
||||||
hasura-cli metadata reload;
|
|
||||||
workingDir: /data
|
workingDir: /data
|
||||||
env:
|
env:
|
||||||
- name: HASURA_GRAPHQL_ENDPOINT
|
- name: HASURA_GRAPHQL_ENDPOINT
|
||||||
|
@ -9,7 +9,7 @@ image:
|
|||||||
repository: hasura/graphql-engine
|
repository: hasura/graphql-engine
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
# Overrides the image tag whose default is the chart appVersion.
|
# Overrides the image tag whose default is the chart appVersion.
|
||||||
tag: v2.15.0.cli-migrations-v3
|
tag: ""
|
||||||
pullSecrets: [ ]
|
pullSecrets: [ ]
|
||||||
|
|
||||||
extraEnvVarsSecret: ""
|
extraEnvVarsSecret: ""
|
||||||
|
Reference in New Issue
Block a user