diff --git a/scripts/helmcharts/openreplay/charts/chalice/templates/deployment.yaml b/scripts/helmcharts/openreplay/charts/chalice/templates/deployment.yaml index b70cfe1c9..2eb61582c 100644 --- a/scripts/helmcharts/openreplay/charts/chalice/templates/deployment.yaml +++ b/scripts/helmcharts/openreplay/charts/chalice/templates/deployment.yaml @@ -92,7 +92,7 @@ spec: - name: SITE_URL value: '{{- include "openreplay.domainURL" . }}' - name: S3_HOST - value: '{{- include "openreplay.s3Endpoint" . }}' + value: {{- if .Values.global.s3.endpoint -}}{{- include "openreplay.s3Endpoint" . -}}{{- end }} - name: S3_KEY {{- if .Values.global.s3.existingSecret }} valueFrom: