Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field evaulation #34

Open
Pisztrang opened this issue May 4, 2021 · 0 comments
Open

Field evaulation #34

Pisztrang opened this issue May 4, 2021 · 0 comments

Comments

@Pisztrang
Copy link

Pisztrang commented May 4, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant