fix(helm): handle empty s3 endpoint url

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
rjshrjndrn 2025-02-11 16:11:07 +01:00
parent f9ec7bce68
commit eca379feed

View file

@ -29,10 +29,14 @@ ingress-nginx: &ingress-nginx
{{/* Get the S3 endpoint value */}}
{{- define "openreplay.s3Endpoint" -}}
{{- if contains "minio" .Values.global.s3.endpoint -}}
{{- include "openreplay.domainURL" . -}}
{{- if .Values.global.s3.endpoint -}}
{{- if contains "minio" .Values.global.s3.endpoint -}}
{{- include "openreplay.domainURL" . -}}
{{- else -}}
{{- .Values.global.s3.endpoint -}}
{{- end -}}
{{- else -}}
{{- .Values.global.s3.endpoint -}}
{{- printf "https://s3.%s.amazonaws.com" .Values.global.s3.region -}}
{{- end -}}
{{- end -}}