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"
Description
In
templates/configmap_env.yamlat lines 50-51, the template incorrectly uses.Valuesinside awithblock, which changes the context to the value itself (a string), making.Valuesinaccessible.Location
templates/configmap_env.yamllines 50-51Current Code (Broken)
Error Message
Suggested Fix
Either use
ifinstead ofwith:Or use the context variable inside
with:Chart Version
v0.23.0"