Skip to content

Commit

Permalink
add condition on DELEGATED_STORAGE_HOST value
Browse files Browse the repository at this point in the history
  • Loading branch information
AmelieLoulergue committed Dec 13, 2024
1 parent b8c5646 commit 1890efb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion opensource/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,12 @@ spec:
- name: DELEGATED_STORAGE_METHOD
value: "{{ default "DISTANT_BACKEND" .Values.delegatedStorage.storageMethod }}"
- name: DELEGATED_STORAGE_HOST
value: "http://{{ include "minioService" . }}:{{ .Values.s3.port}}"
value: >
{{- if eq .Values.delegatedStorage.storageMethod "S3" -}}
http://{{ include "minioService" . }}:{{ .Values.s3.port }}
{{- else -}}
{{ .Values.delegatedStorage.host }}
{{- end -}}
- name: DELEGATED_STORAGE_READINESS_CHECK
value: "{{ default "/minio/health/live" .Values.delegatedStorage.routes.readinessCheck }}"
{{- if and (eq .Values.delegatedStorage.connect true) (eq .Values.delegatedStorage.storageMethod "DISTANT_BACKEND") }}
Expand Down

0 comments on commit 1890efb

Please sign in to comment.