hades-chart/hades/templates/configmap-sql-migrations.yaml
2026-02-11 13:58:14 +05:30

16 lines
442 B
YAML

{{- if .Values.dbInit.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "hades.fullname" . }}-sql-migrations
labels:
{{- include "hades.labels" . | nindent 4 }}
app.kubernetes.io/component: dbinit
annotations:
argocd.argoproj.io/sync-options: ServerSideApply=true
binaryData:
{{- range $path, $_ := .Files.Glob "sql/004_*.sql" }}
{{ base $path }}: {{ $.Files.Get $path | b64enc }}
{{- end }}
{{- end }}