bbgo_origin/charts/bbgo/templates/configmap.yaml

19 lines
447 B
YAML
Raw Normal View History

{{- if .Values.configmap }}
2020-12-15 10:57:46 +00:00
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "bbgo.fullname" . }}
labels:
{{- include "bbgo.labels" . | nindent 4 }}
data:
# if configmap is given as a string, we read it as a file
{{- if eq "string" (typeOf .Values.configmap) }}
2020-12-15 10:57:46 +00:00
bbgo.yaml: |-
{{- .Files.Get .Values.configmap | nindent 4 }}
{{- else }}
bbgo.yaml:
{{- .Values.configmap | nindent 4 }}
{{- end }}
{{- end }}