Files
application/backing-services/osrm/templates/configmap-files.yaml
2025-11-09 13:22:40 +03:30

22 lines
763 B
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "osrm.fullname" . }}-files
labels: {{ include "osrm.labels" . | nindent 4 }}
data:
{{- range $key, $filepath := .Values.configTemplatedFiles }}
{{ $key }}: |- {{ ( tpl ($.Files.Get $filepath) $ ) | nindent 4 }}
{{- end }}
{{- if and .Values.map.enabled ( eq "http" .Values.map.source ) }}
{{- range $key, $filepath := .Values.map.http.configTemplatedFiles }}
{{ $key }}: |- {{ ( tpl ($.Files.Get $filepath) $ ) | nindent 4 }}
{{- end }}
{{- end }}
{{- if and .Values.map.enabled ( eq "gcs" .Values.map.source ) }}
{{- range $key, $filepath := .Values.map.gcs.configTemplatedFiles }}
{{ $key }}: |- {{ ( tpl ($.Files.Get $filepath) $ ) | nindent 4 }}
{{- end }}
{{- end }}