chore(http): check for custom endpoint for caching
Signed-off-by: --global <--global>
This commit is contained in:
parent
2ea64da188
commit
6ffa00cfe4
1 changed files with 4 additions and 0 deletions
|
|
@ -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 }}'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue