3
0
mirror of https://github.com/mastodon/chart synced 2025-05-19 05:23: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 ) .) }} {{- 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 ) .) }} {{- include "mastodon.secrets.object" (merge (dict "prepare" true ) .) }}
{{- end }}

View File

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

View File

@ -24,6 +24,9 @@ mastodon:
# @ignored # @ignored
email: not@example.com email: not@example.com
hooks: 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: dbMigrate:
enabled: true enabled: true
assetsPrecompile: assetsPrecompile:
@ -523,7 +526,9 @@ elasticsearch:
# https://github.com/bitnami/charts/tree/master/bitnami/postgresql#parameters # https://github.com/bitnami/charts/tree/master/bitnami/postgresql#parameters
postgresql: postgresql:
# -- disable if you want to use an existing db; in which case the values below # -- 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 enabled: true
# postgresqlHostname: preexisting-postgresql # postgresqlHostname: preexisting-postgresql
# postgresqlPort: 5432 # postgresqlPort: 5432