mirror of
https://github.com/mastodon/chart
synced 2025-03-14 21:11:50 +00:00
Fix migrations running even when hook is disabled (#173)
This commit is contained in:
parent
e43a23e378
commit
36581ab5b7
|
@ -1 +1,3 @@
|
|||
{{- if .Values.mastodon.hooks.dbMigrate.enabled }}
|
||||
{{- include "mastodon.dbMigrateJob" (merge (dict "preDeploy" false ) .) }}
|
||||
{{- end }}
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
{{- if .Values.mastodon.hooks.dbMigrate.enabled }}
|
||||
{{- include "mastodon.dbMigrateJob" (merge (dict "preDeploy" true ) .) }}
|
||||
{{- end }}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{{- if not .Values.postgresql.enabled }}
|
||||
{{- if and .Values.mastodon.hooks.dbMigrate.enabled (not .Values.postgresql.enabled) }}
|
||||
{{- include "mastodon.dbMigrateJob" (merge (dict "prepare" true ) .) }}
|
||||
{{- end }}
|
||||
|
|
|
@ -24,7 +24,7 @@ mastodon:
|
|||
# @ignored
|
||||
email: not@example.com
|
||||
hooks:
|
||||
# Whether to perform DB migrations on `helm install|upgrade`.
|
||||
# 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).
|
||||
dbMigrate:
|
||||
|
|
Loading…
Reference in New Issue
Block a user