3
0
mirror of https://github.com/mastodon/chart synced 2025-05-17 20:43:21 +00:00

Separate out hooks for db:prepare and db:migrate

This commit is contained in:
Tim Campbell 2025-03-06 11:40:22 +01:00
parent 1d5f7f5be7
commit 60c98b5e83
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,3 @@
{{- if and .Values.mastodon.hooks.dbMigrate.enabled (not .Values.postgresql.enabled) }} {{- if and .Values.mastodon.hooks.dbPrepare.enabled (not .Values.postgresql.enabled) }}
{{- include "mastodon.dbMigrateJob" (merge (dict "prepare" true ) .) }} {{- include "mastodon.dbMigrateJob" (merge (dict "prepare" true ) .) }}
{{- end }} {{- end }}

View File

@ -24,9 +24,12 @@ mastodon:
# @ignored # @ignored
email: not@example.com email: not@example.com
hooks: hooks:
# Whether to perform DB preparations & migrations on `helm install|upgrade`. # Whether to perform DB schema creation on `helm install`.
# Please note that initial DB schema creation on `helm install` does not # Please note that this does not work when using the included database
# work when using the included database (postgresql.enabled=true). # (postgresql.enabled=true).
dbPrepare:
enabled: true
# Whether to perform DB migrations on `helm upgrade`.
dbMigrate: dbMigrate:
enabled: true enabled: true
# Upload website assets to S3 before deploying using rclone. # Upload website assets to S3 before deploying using rclone.