20 lines
608 B
YAML
20 lines
608 B
YAML
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: {{ include "maubot.fullname" . }}-db-init
|
|
labels:
|
|
{{- include "maubot.labels" . | nindent 4 }}
|
|
annotations:
|
|
"helm.sh/hook": pre-install
|
|
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
|
spec:
|
|
template:
|
|
spec:
|
|
restartPolicy: Never
|
|
containers:
|
|
- name: general-db-init
|
|
image: "{{ .Values.initContainers.dbInit.image.repository }}:{{ .Values.initContainers.dbInit.image.tag }}"
|
|
envFrom:
|
|
- secretRef:
|
|
name: {{ .Values.postgres.secretName }}
|
|
backoffLimit: 3
|