Skip to content

Commit

Permalink
Merge pull request #33 from BouyguesTelecom/add/release-name-in-kind-…
Browse files Browse the repository at this point in the history
…yaml

add condition on DELEGATED_STORAGE_HOST value
  • Loading branch information
AmelieLoulergue authored Dec 13, 2024
2 parents fef7fec + 1890efb commit 1be1d5e
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 1be1d5e

Please sign in to comment.