We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c6f99e commit aa075bdCopy full SHA for aa075bd
1 file changed
charts/service-gateway/templates/gateway-tls/certificate.yaml
@@ -31,9 +31,10 @@ spec:
31
{{- if eq .Values.infra.hostType "domain" }}
32
dnsNames:
33
- {{ 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 }}"
+ {{- $platformHost := dig "platform" "host" "" (.Values.global | default dict) }}
+ {{- if and (eq (dig "mode" "" (.Values.gatewayClass.annotations | default dict)) "hosted") (eq $platformHost "appscode.com") }}
+ - "nats.{{ $platformHost }}"
37
+ - "api.{{ $platformHost }}"
38
- "api.byte.builders"
39
{{- end }}
40
commonName: {{ include "gateway.domain" . }}
0 commit comments