Skip to content

Commit e1ade01

Browse files
Add extra SANs for hosted gateway TLS certificate
Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
1 parent 0fad0fa commit e1ade01

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

charts/service-gateway/templates/gateway-tls/certificate.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ spec:
3131
{{- if eq .Values.infra.hostType "domain" }}
3232
dnsNames:
3333
- {{ include "gateway.domain" . }}
34+
{{- if and (eq (dig "mode" "" (.Values.gatewayClass.annotations | default dict)) "hosted") (eq .Values.global.platform.host "appscode.com") }}
35+
- "nats.{{ .Values.global.platform.host }}"
36+
- "api.{{ .Values.global.platform.host }}"
37+
- "api.byte.builders"
38+
{{- end }}
3439
commonName: {{ include "gateway.domain" . }}
3540
{{- end }}
3641
usages:

0 commit comments

Comments
 (0)