3
0
mirror of https://github.com/mastodon/chart synced 2025-05-18 21:13:21 +00:00

DB prepare job cannot run on install when using included postgres

This commit is contained in:
Tim Campbell 2025-03-03 16:07:19 +01:00
parent ee3d114e27
commit ee39795d11
4 changed files with 14 additions and 1 deletions

View File

@ -1 +1,4 @@
# Does not work with included database because of helm install order.
{{- if not .Values.postgresql.enabled }}
{{- include "mastodon.dbMigrateJob" (merge (dict "prepare" true ) .) }}
{{- end }}

View File

@ -1 +1,4 @@
# Does not work with included database because of helm install order.
{{- if and (include "mastodon.createSecret" .) (not .Values.postgresql.enabled) -}}
{{- include "mastodon.secrets.object" (merge (dict "prepare" true ) .) }}
{{- end }}

View File

@ -1 +1,3 @@
{{- if (include "mastodon.createSecret" .) -}}
{{- include "mastodon.secrets.object" . }}
{{- end }}

View File

@ -24,6 +24,9 @@ mastodon:
# @ignored
email: not@example.com
hooks:
# Whether to perform DB 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:
enabled: true
assetsPrecompile:
@ -523,7 +526,9 @@ elasticsearch:
# https://github.com/bitnami/charts/tree/master/bitnami/postgresql#parameters
postgresql:
# -- disable if you want to use an existing db; in which case the values below
# must match those of that external postgres instance
# must match those of that external postgres instance.
# Please note that certain features do not work when enabling the included
# database, namely automatic schema creation when the app is first installed.
enabled: true
# postgresqlHostname: preexisting-postgresql
# postgresqlPort: 5432