Skip to content

Commit 81b41a8

Browse files
authored
feat: run extraVolumes through templating
We wanted to add custom error pages for our load balancer, and since each load balancer depence on their own ingress-nginx we need to be able to template the volume configmap. ``` extraVolumes: - name: custom-error-pages configMap: name: "{{ .Release.Name }}-custom-error-pages"``` Now gives us: ``` volumes: - configMap: name: '{{ .Release.Name }}-custom-error-pages' ```
1 parent 4cbb78a commit 81b41a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

charts/ingress-nginx/templates/controller-daemonset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ spec:
234234
{{- end }}
235235
{{- end }}
236236
{{- if .Values.controller.extraVolumes }}
237-
{{ toYaml .Values.controller.extraVolumes | nindent 8 }}
237+
{{ tpl (toYaml .Values.controller.extraVolumes) $ | nindent 8 }}
238238
{{- end }}
239239
{{- end }}
240240
{{- end }}

0 commit comments

Comments
 (0)