-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Description
In templates/configmap_env.yaml at lines 50-51, the template incorrectly uses .Values inside a with block, which changes the context to the value itself (a string), making .Values inaccessible.
Location
templates/configmap_env.yaml lines 50-51
Current Code (Broken)
{{- with .Values.pixelfed.instance.contact_email }}
INSTANCE_CONTACT_EMAIL: {{ .Values.pixelfed.instance.contact_email }}
{{- end }}
Error Message
template: pixelfed/templates/configmap_env.yaml:51:36: executing \"pixelfed/templates/configmap_env.yaml\" at <.Values.pixelfed.instance.contact_email>: can't evaluate field Values in type string
Suggested Fix
Either use if instead of with:
{{- if .Values.pixelfed.instance.contact_email }}
INSTANCE_CONTACT_EMAIL: {{ .Values.pixelfed.instance.contact_email }}
{{- end }}Or use the context variable inside with:
{{- with .Values.pixelfed.instance.contact_email }}
INSTANCE_CONTACT_EMAIL: {{ . }}
{{- end }}Chart Version
v0.23.0"
Metadata
Metadata
Assignees
Labels
No labels