From fee6f40c99fbaa4cd188f199cbb10b0f32c89737 Mon Sep 17 00:00:00 2001 From: marlene Date: Fri, 3 Nov 2023 06:52:56 +0800 Subject: [PATCH] Allow use of custom image for wait-for-migration initContainer Signed-off-by: marlene --- charts/openfga/templates/deployment.yaml | 3 ++- charts/openfga/values.yaml | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/openfga/templates/deployment.yaml b/charts/openfga/templates/deployment.yaml index d1f5147..f1ed6a9 100644 --- a/charts/openfga/templates/deployment.yaml +++ b/charts/openfga/templates/deployment.yaml @@ -39,7 +39,8 @@ spec: - name: wait-for-migration securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - image: groundnuty/k8s-wait-for:v1.6 + image: "{{ .Values.datastore.migrations.image.repository }}:{{ .Values.datastore.migrations.image.tag }}" + imagePullPolicy: {{ .Values.datastore.migrations.image.pullPolicy }} args: ["job", '{{ include "openfga.fullname" . }}-migrate'] resources: {{- toYaml .Values.datastore.migrations.resources | nindent 12 }} diff --git a/charts/openfga/values.yaml b/charts/openfga/values.yaml index d0c24a6..f623388 100644 --- a/charts/openfga/values.yaml +++ b/charts/openfga/values.yaml @@ -141,6 +141,10 @@ datastore: applyMigrations: true migrations: resources: {} + image: + repository: groundnuty/k8s-wait-for + pullPolicy: Always + tag: "v1.6" postgres: ## @param postgres.enabled enable the bitnami/postgresql subchart and deploy Postgres