chore(http): check for custom endpoint for caching

Signed-off-by: --global <--global>
This commit is contained in:
--global 2022-02-14 16:54:53 +01:00
parent 2ea64da188
commit 6ffa00cfe4

View file

@ -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 }}'