Skip to content

Commit

Permalink
SUCI-810: Add S3 bucket to UGC Demo (#15)
Browse files Browse the repository at this point in the history
* Add S3 bucket to UGC Demo

* rename

---------

Co-authored-by: Lukas Voß <[email protected]>
  • Loading branch information
MrLuMax5 and Lukas Voß authored Feb 5, 2025
1 parent d7c7776 commit 61a5c08
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/sophora-ugc-demo/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: sophora-ugc-demo
description: A Helm chart for the UGC demo
type: application

version: 0.1.2
version: 0.1.3

appVersion: 'latest'

Expand Down
12 changes: 12 additions & 0 deletions charts/sophora-ugc-demo/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ spec:
key: {{ .Values.sophora.authentication.secret.passwordKey }}
name: {{ .Values.sophora.authentication.secret.name }}
optional: false
- name: SUBMISSIONS_S3_ACCESSKEYID
valueFrom:
secretKeyRef:
key: {{ .Values.sophora.authentication.s3bucket.accessKeyId }}
name: {{ .Values.sophora.authentication.s3bucket.name }}
optional: false
- name: SUBMISSIONS_S3_SECRETACCESSKEY
valueFrom:
secretKeyRef:
key: {{ .Values.sophora.authentication.s3bucket.secretIdKey }}
name: {{ .Values.sophora.authentication.s3bucket.name }}
optional: false
command: [ "/bin/sh" ]
args:
- "-c"
Expand Down
4 changes: 4 additions & 0 deletions charts/sophora-ugc-demo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ sophora:
name: secret-name
usernameKey: username
passwordKey: password
s3bucket:
name: s3bucket-secret
accessKeyId: s3bucket-access-key
secretIdKey: s3bucket-secret-id

# Additional environment variables can be defined here
env:
Expand Down

0 comments on commit 61a5c08

Please sign in to comment.