Skip to content

Commit 0fa9aa0

Browse files
Derive gateway TLS SANs from infra.host
Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
1 parent aa075bd commit 0fa9aa0

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ spec:
3131
{{- if eq .Values.infra.hostType "domain" }}
3232
dnsNames:
3333
- {{ include "gateway.domain" . }}
34-
{{- $platformHost := dig "platform" "host" "" (.Values.global | default dict) }}
35-
{{- if and (eq (dig "mode" "" (.Values.gatewayClass.annotations | default dict)) "hosted") (eq $platformHost "appscode.com") }}
36-
- "nats.{{ $platformHost }}"
37-
- "api.{{ $platformHost }}"
34+
{{- if and (eq (dig "mode" "" (.Values.gatewayClass.annotations | default dict)) "hosted") (eq .Values.infra.host "appscode.com") }}
35+
- "nats.{{ .Values.infra.host }}"
36+
- "api.{{ .Values.infra.host }}"
3837
- "api.byte.builders"
3938
{{- end }}
4039
commonName: {{ include "gateway.domain" . }}

0 commit comments

Comments
 (0)