Skip to content

Commit

Permalink
Corrected ingress.ingress template
Browse files Browse the repository at this point in the history
conditional between `defaultBackend` and `rules` simplified.

Signed-off-by: Tobias Harnickell <[email protected]>
  • Loading branch information
TobyTheHutt committed Jul 27, 2023
1 parent 0458d51 commit 2463981
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions charts/common/templates/_ingress-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if not $ingress.defaultBackend }}
rules:
{{- if not $ingress.defaultBackend }}
{{- range $ingress.rules }}
- host: {{ .host }}
http:
Expand All @@ -49,12 +49,10 @@ spec:
pathType: {{ .pathType | default "ImplementationSpecific" | quote }}
{{- end }}
{{- end }}
{{- end }}
{{- if $ingress.tls }}
{{- if and (ne $ingress.tls.type "none") (ne $ingress.tls.type "") }}
tls:
- hosts:
{{- if $ingress.rules }}
{{- range $ingress.rules }}
- {{ .host }}
{{- end }}
Expand All @@ -63,7 +61,7 @@ spec:
{{- else if eq $ingress.tls.type "existing" }}
secretName: {{ $ingress.tls.existing.secret }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
Expand Down

0 comments on commit 2463981

Please sign in to comment.