hades-chart/hades/templates/configmap-sql-migrations.yaml
Sagar Patil 0c569ec528 fix: include all SQL files in dbinit configmap (not just 004_*.sql)
The glob was "sql/004_*.sql" which excluded 000_create_db.sql that
creates hades_user. Changed to "sql/*.sql" to include all migration
files in alphabetical order.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-28 14:34:06 +05:30

16 lines
438 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/*.sql" }}
{{ base $path }}: {{ $.Files.Get $path | b64enc }}
{{- end }}
{{- end }}