3
0
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:
Tim Campbell 2025-03-06 11:02:43 +01:00 committed by GitHub
parent e43a23e378
commit 36581ab5b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 2 deletions

View File

@ -1 +1,3 @@
{{- if .Values.mastodon.hooks.dbMigrate.enabled }}
{{- include "mastodon.dbMigrateJob" (merge (dict "preDeploy" false ) .) }}
{{- end }}

View File

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

View File

@ -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 }}

View File

@ -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: