Skip to content

Commit

Permalink
Merge pull request #119 from vivid-planet/fix-multiple-ingress-tls
Browse files Browse the repository at this point in the history
fix(ingress): Every host needs its own cert for tls
  • Loading branch information
kaufmo authored Dec 18, 2024
2 parents d4a0544 + 22a8ad3 commit e5dd7ee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/loud-items-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"comet-ingress-v1": patch
---

Every host needs its own cert for tls
12 changes: 7 additions & 5 deletions charts/comet-ingress-v1/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,16 @@ spec:
{{ $i.service | toYaml | nindent 12 }}
{{- end }}
tls:
- hosts:
{{- if kindIs "slice" $i.hostname }}
{{- range $k := $i.hostname }}
- {{ $k }}
{{- range $j, $k := $i.hostname }}
- hosts:
- {{ $k }}
secretName: {{ $i.service.name }}-{{ $j }}-cert
{{- end }}
{{- else }}
- {{ $i.hostname }}
- hosts:
- {{ $i.hostname }}
secretName: {{ $i.service.name }}-cert
{{- end }}
secretName: {{ $i.service.name }}-cert
{{- end }}
{{- end }}

0 comments on commit e5dd7ee

Please sign in to comment.