2021-03-23 07:43:37 +00:00
|
|
|
{{- 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:
|
2021-03-23 07:43:37 +00:00
|
|
|
# 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: |-
|
2021-03-23 07:43:37 +00:00
|
|
|
{{- .Files.Get .Values.configmap | nindent 4 }}
|
|
|
|
{{- else }}
|
|
|
|
bbgo.yaml:
|
|
|
|
{{- .Values.configmap | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|