fix(helm): return nginx port as string
Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
53781fe655
commit
a712ab45e4
1 changed files with 3 additions and 3 deletions
|
|
@ -8,11 +8,11 @@ Expand the name of the chart.
|
|||
{{/* Get domain name with/without port */}}
|
||||
{{- define "openreplay.domainURL" -}}
|
||||
{{- $scheme := ternary "https" "http" .Values.global.ORSecureAccess -}}
|
||||
{{- $port := ternary .Values.global.ingress.controller.service.ports.https .Values.global.ingress.controller.service.ports.http .Values.global.ORSecureAccess -}}
|
||||
{{- if or (eq (toString $port) "80") (eq (toString $port) "443") -}}
|
||||
{{- $port := toString (ternary .Values.global.ingress.controller.service.ports.https .Values.global.ingress.controller.service.ports.http .Values.global.ORSecureAccess) -}}
|
||||
{{- if or (eq $port "80") (eq $port "443") -}}
|
||||
{{- printf "%s://%s" $scheme .Values.global.domainName -}}
|
||||
{{- else -}}
|
||||
{{- printf "%s://%s:%d" $scheme .Values.global.domainName $port -}}
|
||||
{{- printf "%s://%s:%s" $scheme .Values.global.domainName $port -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue