diff options
author | Alex Nordlund <deep.alexander@gmail.com> | 2022-11-05 17:29:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-05 17:29:20 +0100 |
commit | 0498b106c9d632d761dc556e9d471eb6aec846c5 (patch) | |
tree | 8aa5a86e3bcd0506e8ed5512d15ccb65b179dfeb /chart/templates | |
parent | 29604763d7e8b639a21afeb6c8d8386d2226ddc8 (diff) |
Add S3 existing secret to sidekiq (#19778)
Diffstat (limited to 'chart/templates')
-rw-r--r-- | chart/templates/deployment-sidekiq.yaml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chart/templates/deployment-sidekiq.yaml b/chart/templates/deployment-sidekiq.yaml index 56ba257b5..4b108d79d 100644 --- a/chart/templates/deployment-sidekiq.yaml +++ b/chart/templates/deployment-sidekiq.yaml @@ -82,6 +82,18 @@ spec: secretKeyRef: name: {{ template "mastodon.redis.secretName" . }} key: redis-password + {{- 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 .Values.mastodon.smtp.existingSecret }} - name: "SMTP_LOGIN" valueFrom: |