Skip to content

Commit 217a4c1

Browse files
committed
Enhance ingress template to format annotations as key-value pairs
1 parent 142f853 commit 217a4c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

charts/common/templates/ingress.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ metadata:
77
app: {{ .Values.name }}
88
{{- if .Values.ingress.annotations }}
99
annotations:
10-
{{ toYaml .Values.ingress.annotations | indent 4 }}
10+
{{- range $k, $v := .Values.ingress.annotations }}
11+
{{ $k }}: "{{ $v }}"
12+
{{- end }}
1113
{{- end }}
1214
spec:
1315
{{- if .Values.ingress.ingressClassName }}

0 commit comments

Comments
 (0)