Skip to content

Commit

Permalink
fix(ingress): Every host needs its own cert for tls
Browse files Browse the repository at this point in the history
  • Loading branch information
kaufmo committed Dec 18, 2024
1 parent d4a0544 commit 2738b22
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 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
10 changes: 6 additions & 4 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 }}
- hosts:
- {{ $k }}
secretName: {{ $i.service.name }}-{{ $index }}-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 2738b22

Please sign in to comment.