Skip to content

Commit

Permalink
Merge pull request #38 from BouyguesTelecom/feature/option-upload-def…
Browse files Browse the repository at this point in the history
…ault-and-error-image

add ENV for initImages in deployment
  • Loading branch information
AmelieLoulergue authored Dec 18, 2024
2 parents 9102a01 + 13f6931 commit 6a947ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions opensource/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ spec:
- name: S3_BUCKET_NAME
value: "{{ default "media" .Values.s3.bucketName }}"
{{- end }}
- name: IMAGES_UPLOAD_PATH
value: "{{ .Values.mediaProvider.initImagesPath }}"
- name: IMAGES_UPLOAD_NAMESPACE
value: "{{ .Values.mediaProvider.initImagesNamespace }}"
- name: IMAGES_UPLOAD_DESTINATION
value: "{{ .Values.mediaProvider.initImagesDestination }}"
volumes:
- name: redis-storage
persistentVolumeClaim:
Expand Down
3 changes: 3 additions & 0 deletions opensource/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ s3:
storage: 500Mi

mediaProvider:
initImagesPath: ''
initImagesNamespace: ''
initImagesDestination: ''
useStripMetadata: true
imageName: 'bouyguestelecom/tada'
imageVersion: 'api-latest'
Expand Down

0 comments on commit 6a947ba

Please sign in to comment.