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:
parent
1d5f7f5be7
commit
60c98b5e83
|
@ -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 ) .) }}
|
||||
{{- end }}
|
||||
|
|
|
@ -24,9 +24,12 @@ mastodon:
|
|||
# @ignored
|
||||
email: not@example.com
|
||||
hooks:
|
||||
# Whether to perform DB preparations & migrations on `helm install|upgrade`.
|
||||
# Please note that initial DB schema creation on `helm install` does not
|
||||
# work when using the included database (postgresql.enabled=true).
|
||||
# Whether to perform DB schema creation on `helm install`.
|
||||
# Please note that this does not work when using the included database
|
||||
# (postgresql.enabled=true).
|
||||
dbPrepare:
|
||||
enabled: true
|
||||
# Whether to perform DB migrations on `helm upgrade`.
|
||||
dbMigrate:
|
||||
enabled: true
|
||||
# Upload website assets to S3 before deploying using rclone.
|
||||
|
|
Loading…
Reference in New Issue
Block a user