add helm charts
This commit is contained in:
21
backing-services/osrm/templates/configmap-files.yaml
Normal file
21
backing-services/osrm/templates/configmap-files.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
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 }}
|
||||
Reference in New Issue
Block a user