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:
parent
ee3d114e27
commit
ee39795d11
|
@ -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 }}
|
||||||
|
|
|
@ -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 }}
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
|
{{- if (include "mastodon.createSecret" .) -}}
|
||||||
{{- include "mastodon.secrets.object" . }}
|
{{- include "mastodon.secrets.object" . }}
|
||||||
|
{{- end }}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user