Skip to content

Commit c7cf73f

Browse files
committed
fix: add quote to annotation because of 'metadata.annotations accessor error: contains non-string value in the map under key nginx.ingress.kubernetes.io/force-ssl-redirect: true is of the type bool, expected string'
1 parent a9de48f commit c7cf73f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/ingress.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
{{- with .Values.ingress.annotations }}
99
annotations:
1010
{{- range $key, $value := . }}
11-
{{ $key }}: {{ tpl ($value | toString) $ }}
11+
{{ $key }}: {{ tpl ($value | toString | quote ) $ }}
1212
{{- end }}
1313
{{- end }}
1414
spec:
@@ -22,7 +22,7 @@ spec:
2222
{{- range $value := .hosts }}
2323
- {{ tpl ($value | toString) $ | quote }}
2424
{{- end }}
25-
secretName: {{ tpl (.secretName | toString) $ }}
25+
secretName: {{ tpl (.secretName | toString | quote ) $ }}
2626
{{- end }}
2727
{{- end }}
2828
rules:

0 commit comments

Comments
 (0)