about summary refs log tree commit diff
path: root/chart/templates/secrets.yaml
diff options
context:
space:
mode:
authorAlex Dunn <dunn.alex@gmail.com>2021-02-19 00:52:32 -0800
committerGitHub <noreply@github.com>2021-02-19 09:52:32 +0100
commitfca4fd1daa09f7261753bc98103f653a9ce463b1 (patch)
tree376101238847eb33af9901a3e6894abfa99f4a70 /chart/templates/secrets.yaml
parente31ed2748597c9f31afba87dcdf47082949f0f23 (diff)
helm: add support for S3 storage (#15748)
Diffstat (limited to 'chart/templates/secrets.yaml')
-rw-r--r--chart/templates/secrets.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/chart/templates/secrets.yaml b/chart/templates/secrets.yaml
index 63d01d3eb..0452a8ae1 100644
--- a/chart/templates/secrets.yaml
+++ b/chart/templates/secrets.yaml
@@ -6,6 +6,10 @@ metadata:
     {{- include "mastodon.labels" . | nindent 4 }}
 type: Opaque
 data:
+  {{- if .Values.mastodon.s3.enabled }}
+  AWS_ACCESS_KEY_ID: "{{ .Values.mastodon.s3.access_key | b64enc }}"
+  AWS_SECRET_ACCESS_KEY: "{{ .Values.mastodon.s3.access_secret | b64enc }}"
+  {{- end }}
   {{- if not (empty .Values.mastodon.secrets.secret_key_base) }}
   SECRET_KEY_BASE: "{{ .Values.mastodon.secrets.secret_key_base | b64enc }}"
   {{- else }}