I have the following files
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Values.env.{{lle.dev}} }}-configmap
data:
myvalue: "Hello World"env:
lle.dev: ABC
lle.qa: CDEHow do I access the values in the helm template? nested curly braces are also not allowed. Also the below didn't work
name: {{ .Values.env.lle.dev }}-configmapReason being it is considering lle, dev as a separate sub keys for env and not as a single key.
Is there a reason you are trying to prefix your variables with lle? If not, you can rewrite your values.yaml file in the following way:
env:
lle:
dev: ABC
qa: CDEThen you will be able to access your variables as in name: {{ .Values.env.lle.dev }}-configmap