Hi All,
I want top use Helm release management to manage ConfigMap releases because i have several releases/deployments that are using configuration from the same ConfigMap.
I'm not sure if its a valid use of Helm though...
So, my templates folder doen't have anything except of _helpers.tpl, configmap.yaml files and configs folder with .txt files that i want to render in the ConfigMap.
Here is the configmap.yaml:
apiVersion: v1
kind: ConfigMap
Metadata:
name: {{ template "config-chart.fullname" . }}
labels:
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
data:
{{- $files := .Files }}
{{- range tuple "configs/config1.txt" "configs/config2.txt" "configs/config3.txt" }}
{{ . }}: |-
{{ $files.Get . }}
{{- end }}
The problem is that the content of the txt files is not rendered (they are not empty), not sure why.
apiVersion: v1
kind: ConfigMap
Metadata:
name: RELEASE-NAME-config-chart
labels:
heritage: Tiller
release: RELEASE-NAME
data:
configs/config1.txt: |-
configs/config2.txt: |-
configs/config3.txt: |-