fix(helm): handle empty s3 endpoint url
Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
f9ec7bce68
commit
eca379feed
1 changed files with 7 additions and 3 deletions
|
|
@ -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 -}}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue