technosophos/helm-template

Field evaulation

Pisztrang opened this issue · 0 comments

hi

I have the following configmap.yaml

apiVersion: v1
kind: ConfigMap
metadata:
  labels:
    {{- include "labels" . | indent 4 }}
  name: {{ template "fullname" . }}
data:
  LOG_LEVEL   : {{ .Values.config.logLevel     | default "info" | lower | quote }}
  LOG_LEVEL2  : {{ .Values.logLevel            | default "info2" | lower | quote }}
  LOG_LEVEL3  : {{ .Values.conf.logLevel     | default "info3" | lower | quote }}

and values.yaml

config:
  logLevel: "error"

when I run the helm template it says for the LOG_LEVEL3 line that it can't evaulate.....which is correct, since in the values.yaml there is no conf.logLevelf tag.

But when I remove this line I expect that the LOG_LEVEL2 line will fail also, since there is no logLevel tag in the values.yaml.

Why doesn't this line make evaulation error ?

Thanks
Akos