helm-charts/postgresql/templates/job/secret.yaml

17 lines
450 B
YAML
Raw Normal View History

2023-09-26 00:12:53 +02:00
{{- if .Values.job.enabled }}
---
apiVersion: "v1"
kind: "Secret"
metadata:
name: {{ include "postgresql.fullname" . }}-job
labels:
{{- include "postgresql.labels" . | nindent 4 }}
stringData:
_run: |-
{{- tpl (.Files.Get "files/_run") . | nindent 4 }}
10-init-user.sh: |-
{{- tpl (.Files.Get "files/10-init-user.sh") . | nindent 4 }}
20-init-db.sh: |-
{{- tpl (.Files.Get "files/20-init-db.sh") . | nindent 4 }}
{{- end }}