Skip to content

Commit 05cb8b2

Browse files
authored
Merge pull request #151 from small-hack/add-extra-volume-for-db-migrate
add extra volumes and volumemounts for db migrate
2 parents a63c547 + 5d38727 commit 05cb8b2

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

charts/mastodon/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type: application
99
# This is the chart version. This version number should be incremented each time you make changes
1010
# to the chart and its templates, including the app version.
1111
# Versions are expected to follow Semantic Versioning (https://semver.org/)
12-
version: 11.0.1
12+
version: 11.0.2
1313

1414
# renovate: image=ghcr.io/mastodon/mastodon
1515
appVersion: v4.4.4

charts/mastodon/templates/_db-migrate.tpl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ spec:
3939
{{- end }}
4040
spec:
4141
restartPolicy: Never
42+
{{- if .Values.mastodon.extraVolumes }}
43+
volumes:
44+
{{- if gt (len .Values.mastodon.extraVolumes) 0 }}
45+
{{ toYaml .Values.mastodon.extraVolumes | nindent 8}}
46+
{{- end }}
47+
{{- end }}
4248
containers:
4349
- name: {{ include "mastodon.fullname" . }}-db-migrate
4450
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
@@ -52,6 +58,12 @@ spec:
5258
{{- else }}
5359
- db:migrate
5460
{{- end }}
61+
{{- if .Values.mastodon.extraVolumeMounts }}
62+
volumeMounts:
63+
{{- if gt (len .Values.mastodon.extraVolumeMounts) 0 }}
64+
{{- toYaml .Values.mastodon.extraVolumeMounts | nindent 12 }}
65+
{{- end }}
66+
{{- end }}
5567
envFrom:
5668
- configMapRef:
5769
name: {{ include "mastodon.fullname" . }}-env

0 commit comments

Comments
 (0)