From 8647beb538d374de0a6b3fef5cf10ed829ee862c Mon Sep 17 00:00:00 2001 From: Alexander Zavorotynskiy Date: Tue, 24 May 2022 13:21:38 +0200 Subject: [PATCH] chore(helmchart): added ASSETS_ORIGIN to sink helm chart --- .../openreplay/charts/sink/templates/deployment.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/helmcharts/openreplay/charts/sink/templates/deployment.yaml b/scripts/helmcharts/openreplay/charts/sink/templates/deployment.yaml index ced1ee0c5..0c3a6ed35 100644 --- a/scripts/helmcharts/openreplay/charts/sink/templates/deployment.yaml +++ b/scripts/helmcharts/openreplay/charts/sink/templates/deployment.yaml @@ -46,6 +46,15 @@ spec: value: '{{ .Values.global.kafka.kafkaHost }}:{{ .Values.global.kafka.kafkaPort }}' - name: KAFKA_USE_SSL value: '{{ .Values.global.kafka.kafkaUseSsl }}' + # We need to check what is the object store endpoint. + # There can be 4 options + # 1. Using minio inside kube clster + # 2. Using minio managed external cluster, like aws minio offering + # 3. Using GCP or other object stores compatible with s3 apis + # 4. Using AWS itself. + # AWS uses bucketname.endpoint/object while others use endpoint/bucketname/object + - name: ASSETS_ORIGIN + {{ - if eq .Values.global.s3.endpoint "http://minio.db.svc.cluster.local:9000" }} {{- range $key, $val := .Values.env }} - name: {{ $key }} value: '{{ $val }}'