Skip to content

Commit

Permalink
Add hooks to jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
timetinytim committed Dec 7, 2023
1 parent 4b6fd9f commit 8356824
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/job-assets-precompile.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.mastodon.hooks.assetsPrecompile.enabled -}}
apiVersion: batch/v1
kind: Job
metadata:
Expand Down Expand Up @@ -75,3 +76,4 @@ spec:
- name: system
mountPath: /opt/mastodon/public/system
{{- end }}
{{- end -}}
2 changes: 2 additions & 0 deletions templates/job-db-migrate.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.mastodon.hooks.dbMigrate.enabled -}}
apiVersion: batch/v1
kind: Job
metadata:
Expand Down Expand Up @@ -75,3 +76,4 @@ spec:
- name: system
mountPath: /opt/mastodon/public/system
{{- end }}
{{- end -}}
5 changes: 5 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ mastodon:
username: not_gargron
# @ignored
email: [email protected]
hooks:
dbMigrate:
enabled: false
assetsPrecompile:
enabled: false
cron:
# -- run `tootctl media remove` every week
removeMedia:
Expand Down

0 comments on commit 8356824

Please sign in to comment.