charts/charts/maubot/templates/db-init.yaml
2024-04-10 08:35:54 +02:00

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