2026-02-11 13:59:27 +05:30

16 lines
520 B
YAML

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