3
0
mirror of https://github.com/mastodon/chart synced 2024-10-22 19:02:44 +00:00

Add hooks to jobs

This commit is contained in:
Tim Campbell 2023-12-07 16:00:07 +01:00 committed by Renaud Chaput
parent 1d0879b3c9
commit 8014703818
3 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,4 @@
{{- if .Values.mastodon.hooks.assetsPrecompile.enabled -}}
apiVersion: batch/v1 apiVersion: batch/v1
kind: Job kind: Job
metadata: metadata:
@ -75,3 +76,4 @@ spec:
- name: system - name: system
mountPath: /opt/mastodon/public/system mountPath: /opt/mastodon/public/system
{{- end }} {{- end }}
{{- end -}}

View File

@ -1,3 +1,4 @@
{{- if .Values.mastodon.hooks.dbMigrate.enabled -}}
apiVersion: batch/v1 apiVersion: batch/v1
kind: Job kind: Job
metadata: metadata:
@ -75,3 +76,4 @@ spec:
- name: system - name: system
mountPath: /opt/mastodon/public/system mountPath: /opt/mastodon/public/system
{{- end }} {{- end }}
{{- end -}}

View File

@ -20,6 +20,11 @@ mastodon:
username: not_gargron username: not_gargron
# @ignored # @ignored
email: not@example.com email: not@example.com
hooks:
dbMigrate:
enabled: false
assetsPrecompile:
enabled: false
cron: cron:
# -- run `tootctl media remove` every week # -- run `tootctl media remove` every week
removeMedia: removeMedia: