From aa40945597d3304b3590b0ced10783aa1ce2b75f Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Wed, 4 Oct 2023 15:52:01 +0200 Subject: [PATCH] feat(helm): enable minio init, only if enabled or forceInit Signed-off-by: rjshrjndrn --- scripts/helmcharts/openreplay/templates/job.yaml | 2 +- scripts/helmcharts/openreplay/values.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/helmcharts/openreplay/templates/job.yaml b/scripts/helmcharts/openreplay/templates/job.yaml index bd9fe474a..9cde03315 100644 --- a/scripts/helmcharts/openreplay/templates/job.yaml +++ b/scripts/helmcharts/openreplay/templates/job.yaml @@ -134,7 +134,7 @@ spec: mountPath: /opt/openreplay - name: dbmigrationscript mountPath: /opt/migrations/ - {{- if contains "minio" .Values.global.s3.endpoint }} + {{- if or .Values.minio.enabled .Values.minio.forceInit }} - name: minio image: bitnami/minio:2020.10.9-debian-10-r6 env: diff --git a/scripts/helmcharts/openreplay/values.yaml b/scripts/helmcharts/openreplay/values.yaml index 5168ffabd..dc2ec1bcd 100644 --- a/scripts/helmcharts/openreplay/values.yaml +++ b/scripts/helmcharts/openreplay/values.yaml @@ -36,6 +36,10 @@ vault: &vault POSTGRES_STRING=postgres://{{.Data.username}}:{{.Data.password}}@postgresql.db.svc.cluster.local:5432/postgres {{- end -}} +minio: + # Force initialize minio, even if the instance is not provisioned by OR + forceInit: false + global: vault: *vault redis: *redis