16 lines
442 B
YAML
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 }}
|