Helm - Templating variables in values.yaml
问题 I'm trying to template variables from a map inside the values.yaml into my final Kubernetes ConfigMap YAML. I've read through https://github.com/helm/helm/issues/2492 and https://helm.sh/docs/chart_template_guide/ but can't seem to find an answer. For some context, this is roughly what I'm trying to do: values.yaml config: key1: value key2: value-{{ .Release.Name }} configmap.yaml kind: ConfigMap data: config-file: | {{- range $key, $value := .Values.config }} {{ $key }} = {{ $value }} {{-