3
0
mirror of https://github.com/mastodon/chart synced 2025-03-15 05:21:52 +00:00
mastodon-chart-mirror/templates/job-db-prepare.yaml
2025-03-06 16:27:29 +01:00

11 lines
471 B
YAML

{{- if and .Values.mastodon.hooks.dbPrepare.enabled (not .Values.postgresql.enabled) }}
{{- include "mastodon.dbMigrateJob" (merge (dict "prepare" true ) .) }}
{{- if .Values.mastodon.hooks.dbPrepare.nodeSelector }}
nodeSelector:
{{- .Values.mastodon.hooks.dbPrepare.nodeSelector | toYaml | nindent 8 }}
{{- else if .Values.nodeSelector }}
nodeSelector:
{{- .Values.nodeSelector | toYaml | nindent 8 }}
{{- end }}
{{- end }}