Skip to content

Commit

Permalink
Merge pull request #18 from nuuday/conditional-tenantname
Browse files Browse the repository at this point in the history
feat: conditional tenantname on ingress
  • Loading branch information
MMygind authored Jan 21, 2025
2 parents f92f6bd + f4d3919 commit 223865a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/app/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ spec:
{{- range .tls }}
- hosts:
{{- range $host:=.hosts }}
- {{ $host }}.{{ $.Values.ingress.tenantName }}.{{ $dnsSuffix }}
- {{ $host }}{{ if $.Values.ingress.tenantName }}.{{ $.Values.ingress.tenantName }}{{ end }}.{{ $dnsSuffix }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .hosts }}
- host: {{ .host }}.{{ $.Values.ingress.tenantName }}.{{ $dnsSuffix }}
- host: {{ .host }}{{ if $.Values.ingress.tenantName }}.{{ $.Values.ingress.tenantName }}{{ end }}.{{ $dnsSuffix }}
http:
paths:
{{- range .paths }}
Expand Down

0 comments on commit 223865a

Please sign in to comment.