diff --git a/Chart.yaml b/Chart.yaml index bf91532..07198ba 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -2,6 +2,6 @@ apiVersion: v2 name: hasura description: A Helm chart for Kubernetes type: application -version: 0.2.0 +version: 0.2.1 appVersion: v2.3.1 icon: https://raw.githubusercontent.com/hasura/graphql-engine/master/assets/brand/powered_by_hasura_primary_lightbg.svg diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 78502d1..7b04b98 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -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 }} diff --git a/templates/migrations-job.yaml b/templates/migrations-job.yaml index 8ae66e1..b272ac0 100644 --- a/templates/migrations-job.yaml +++ b/templates/migrations-job.yaml @@ -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; diff --git a/values.yaml b/values.yaml index 8bdf67d..57c67c9 100644 --- a/values.yaml +++ b/values.yaml @@ -5,6 +5,7 @@ replicaCount: 1 image: + registry: ®istry docker.io repository: hasura/graphql-engine pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. @@ -15,7 +16,7 @@ extraEnvVarsSecret: "" migrations: # Docker image which contain migrations,metadata,config.yml inside /data directory image: - registry: docker.io + registry: *registry repository: "" tag: ""