Added conditionals for ingress extraPaths
This commit is contained in:
parent
ffc9220f04
commit
8531e2523f
1 changed files with 5 additions and 1 deletions
|
@ -34,7 +34,9 @@ spec:
|
||||||
- host: {{ $host }}
|
- host: {{ $host }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
|
{{- if $extraPaths }}
|
||||||
{{- toYaml $extraPaths | nindent 10 }}
|
{{- toYaml $extraPaths | nindent 10 }}
|
||||||
|
{{- end }}
|
||||||
{{- range $p := $paths }}
|
{{- range $p := $paths }}
|
||||||
- path: {{ $p }}
|
- path: {{ $p }}
|
||||||
backend:
|
backend:
|
||||||
|
@ -45,7 +47,9 @@ spec:
|
||||||
{{- else }}
|
{{- else }}
|
||||||
- http:
|
- http:
|
||||||
paths:
|
paths:
|
||||||
|
{{- if $extraPaths }}
|
||||||
{{- toYaml $extraPaths | nindent 10 }}
|
{{- toYaml $extraPaths | nindent 10 }}
|
||||||
|
{{- end }}
|
||||||
{{- range $p := $paths }}
|
{{- range $p := $paths }}
|
||||||
- path: {{ $p }}
|
- path: {{ $p }}
|
||||||
backend:
|
backend:
|
||||||
|
@ -57,4 +61,4 @@ spec:
|
||||||
tls:
|
tls:
|
||||||
{{- toYaml .Values.server.ingress.tls | nindent 4 }}
|
{{- toYaml .Values.server.ingress.tls | nindent 4 }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
Loading…
Reference in a new issue