I am following example mentioned in https://helm.sh/docs/chart_template_guide/accessing_files/.
I am able to load toml files in configmap, but when I use rego files, I am getting an error:
cat multiple_config.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-configmap
data:
{{- $files := .Files }}
{{- range tuple "label-check.rego" }}
{{ . }}: |-
{{ $files.Get . }}
{{- end }}
Error :-
Error: YAML parse error on opa/templates/multiple_config.yaml: error converting YAML to JSON: yaml: line 14: could not find expected ':'