about summary refs log tree commit diff
path: root/chart/templates/deployment-web.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/deployment-web.yaml
parente31ed2748597c9f31afba87dcdf47082949f0f23 (diff)
helm: add support for S3 storage (#15748)
Diffstat (limited to 'chart/templates/deployment-web.yaml')
-rw-r--r--chart/templates/deployment-web.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/chart/templates/deployment-web.yaml b/chart/templates/deployment-web.yaml
index 02aa7c9a5..8b8bb4f29 100644
--- a/chart/templates/deployment-web.yaml
+++ b/chart/templates/deployment-web.yaml
@@ -31,6 +31,7 @@ spec:
       serviceAccountName: {{ include "mastodon.serviceAccountName" . }}
       securityContext:
         {{- toYaml .Values.podSecurityContext | nindent 8 }}
+      {{- if (not .Values.mastodon.s3.enabled) }}
       volumes:
         - name: assets
           persistentVolumeClaim:
@@ -38,6 +39,7 @@ spec:
         - name: system
           persistentVolumeClaim:
             claimName: {{ template "mastodon.fullname" . }}-system
+      {{- end }}
       containers:
         - name: {{ .Chart.Name }}
           securityContext:
@@ -72,11 +74,13 @@ spec:
                   key: redis-password
             - name: "PORT"
               value: {{ .Values.mastodon.web.port | quote }}
+          {{- if (not .Values.mastodon.s3.enabled) }}
           volumeMounts:
             - name: assets
               mountPath: /opt/mastodon/public/assets
             - name: system
               mountPath: /opt/mastodon/public/system
+          {{- end }}
           ports:
             - name: http
               containerPort: {{ .Values.mastodon.web.port }}