From 6ffa00cfe49e353e7df60a15592603da333381e3 Mon Sep 17 00:00:00 2001 From: --global <--global> Date: Mon, 14 Feb 2022 16:54:53 +0100 Subject: [PATCH] chore(http): check for custom endpoint for caching Signed-off-by: --global <--global> --- .../openreplay/charts/assets/templates/deployment.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/helmcharts/openreplay/charts/assets/templates/deployment.yaml b/scripts/helmcharts/openreplay/charts/assets/templates/deployment.yaml index 1af5164ca..1c8216468 100644 --- a/scripts/helmcharts/openreplay/charts/assets/templates/deployment.yaml +++ b/scripts/helmcharts/openreplay/charts/assets/templates/deployment.yaml @@ -59,7 +59,11 @@ spec: # Ref: https://stackoverflow.com/questions/53634583/go-template-split-string-by-delimiter # We need https://bucketname.s3endpoint - name: ASSETS_ORIGIN + {{- if eq .Values.global.s3.endpoint "http://minio.db.svc.cluster.local:9000" }} + value: 'https://{{ .Values.global.domainName }}/{{.Values.global.s3.assetsBucket}}' + {{- else }} value: {{ (split "://" .Values.global.s3.endpoint)._0 }}://{{.Values.global.s3.assetsBucket}}.{{ (split "://" .Values.global.s3.endpoint)._1 }} + {{- end }} {{- range $key, $val := .Values.env }} - name: {{ $key }} value: '{{ $val }}'