Add presigned URL support for direct S3 downloads (#48)
This commit is contained in:
@@ -97,10 +97,27 @@ password
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
MinIO host
|
||||
MinIO internal host (for server-side operations)
|
||||
*/}}
|
||||
{{- define "orchard.minio.internalHost" -}}
|
||||
{{- if .Values.minio.enabled }}
|
||||
{{- printf "http://%s-minio:9000" .Release.Name }}
|
||||
{{- else }}
|
||||
{{- .Values.orchard.s3.endpoint }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
MinIO host (uses external URL if ingress enabled, for presigned URLs)
|
||||
*/}}
|
||||
{{- define "orchard.minio.host" -}}
|
||||
{{- if .Values.minio.enabled }}
|
||||
{{- if and .Values.minio.enabled .Values.minio.ingress.enabled .Values.minio.ingress.host }}
|
||||
{{- if .Values.minio.ingress.tls.enabled }}
|
||||
{{- printf "https://%s" .Values.minio.ingress.host }}
|
||||
{{- else }}
|
||||
{{- printf "http://%s" .Values.minio.ingress.host }}
|
||||
{{- end }}
|
||||
{{- else if .Values.minio.enabled }}
|
||||
{{- printf "http://%s-minio:9000" .Release.Name }}
|
||||
{{- else }}
|
||||
{{- .Values.orchard.s3.endpoint }}
|
||||
|
||||
Reference in New Issue
Block a user