summaryrefslogtreecommitdiffstats
path: root/chart/templates/job-assets-precompile.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/job-assets-precompile.yaml
parente31ed2748597c9f31afba87dcdf47082949f0f23 (diff)
helm: add support for S3 storage (#15748)
Diffstat (limited to 'chart/templates/job-assets-precompile.yaml')
-rw-r--r--chart/templates/job-assets-precompile.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/chart/templates/job-assets-precompile.yaml b/chart/templates/job-assets-precompile.yaml
index 2aae20582d7..825a7e9160d 100644
--- a/chart/templates/job-assets-precompile.yaml
+++ b/chart/templates/job-assets-precompile.yaml
@@ -14,6 +14,7 @@ spec:
name: {{ include "mastodon.fullname" . }}-assets-precompile
spec:
restartPolicy: Never
+ {{- if (not .Values.mastodon.s3.enabled) }}
# ensure we run on the same node as the other rails components; only
# required when using PVCs that are ReadWriteOnce
{{- if or (eq "ReadWriteOnce" .Values.mastodon.persistence.assets.accessMode) (eq "ReadWriteOnce" .Values.mastodon.persistence.system.accessMode) }}
@@ -35,6 +36,7 @@ spec:
- name: system
persistentVolumeClaim:
claimName: {{ template "mastodon.fullname" . }}-system
+ {{- end }}
containers:
- name: {{ include "mastodon.fullname" . }}-assets-precompile
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
@@ -66,8 +68,10 @@ 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 }}