mirror of
https://github.com/mastodon/chart
synced 2025-03-15 13:31:51 +00:00
Add hooks to jobs
This commit is contained in:
parent
1d0879b3c9
commit
8014703818
|
@ -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 -}}
|
||||||
|
|
|
@ -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 -}}
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user