3
0
mirror of https://github.com/mastodon/chart synced 2025-03-15 13:31:51 +00:00
mastodon-chart-mirror/templates/job-db-prepare.yaml

11 lines
469 B
YAML
Raw Normal View History

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