fix: Helm giving linting error when no ingress or ingressGrpc extraPaths are given (#435)

* Added conditionals for ingress extraPaths

* Added conditionals for ingressGrpc extraPaths

* Version bump
This commit is contained in:
Ertugrul Karademir 2020-09-01 23:41:22 +01:00 committed by GitHub
parent ffc9220f04
commit b9af202660
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 5 deletions

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 -}}