Added conditionals for ingress extraPaths

This commit is contained in:
Ertugrul Karademir 2020-08-31 11:38:45 +01:00
parent ffc9220f04
commit 8531e2523f

View file

@ -34,7 +34,9 @@ spec:
- host: {{ $host }}
http:
paths:
{{- if $extraPaths }}
{{- toYaml $extraPaths | nindent 10 }}
{{- end }}
{{- range $p := $paths }}
- path: {{ $p }}
backend:
@ -45,7 +47,9 @@ spec:
{{- else }}
- http:
paths:
{{- if $extraPaths }}
{{- toYaml $extraPaths | nindent 10 }}
{{- end }}
{{- range $p := $paths }}
- path: {{ $p }}
backend:
@ -57,4 +61,4 @@ spec:
tls:
{{- toYaml .Values.server.ingress.tls | nindent 4 }}
{{- end -}}
{{- end -}}
{{- end -}}