Skip to content

Commit

Permalink
Allow S3 to use an existing secret (mastodon#18997)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepy authored and kadoshita committed Nov 19, 2022
1 parent 5246500 commit 8abb600
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions chart/templates/deployment-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@ spec:
key: redis-password
- name: "PORT"
value: {{ .Values.mastodon.web.port | quote }}
{{- if (and .Values.mastodon.s3.enabled .Values.mastodon.s3.existingSecret) }}
- name: "AWS_SECRET_ACCESS_KEY"
valueFrom:
secretKeyRef:
name: {{ .Values.mastodon.s3.existingSecret }}
key: AWS_SECRET_ACCESS_KEY
- name: "AWS_ACCESS_KEY_ID"
valueFrom:
secretKeyRef:
name: {{ .Values.mastodon.s3.existingSecret }}
key: AWS_ACCESS_KEY_ID
{{- end -}}
{{- if (not .Values.mastodon.s3.enabled) }}
volumeMounts:
- name: assets
Expand Down

0 comments on commit 8abb600

Please sign in to comment.