17 lines
450 B
YAML
17 lines
450 B
YAML
|
{{- 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 }}
|