File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ data:
102
102
STARHUB_SERVER_PUBLIC_DOMAIN : {{ include "csghub.external.endpoint" . }}
103
103
# Deprecated ==> re-enabled
104
104
{{- if .Values.global.deploy.usePublicDomain }}
105
- STARHUB_SERVER_PUBLIC_ROOT_DOMAIN : {{ include "csghub.external.public.domain " . | quote }}
105
+ STARHUB_SERVER_PUBLIC_ROOT_DOMAIN : {{ include "csghub.external.public.endpoint " . | trimPrefix "http://" | trimPrefix "https://" | quote }}
106
106
{{- else }}
107
107
STARHUB_SERVER_PUBLIC_ROOT_DOMAIN : " "
108
108
{{- end }}
Original file line number Diff line number Diff line change @@ -41,4 +41,24 @@ Define the external endpoint for csghub
41
41
{ {- printf " http://%s" $domain -} }
42
42
{ {- end } }
43
43
{ {- end } }
44
+ { {- end } }
45
+
46
+ { {/*
47
+ Define the external public endpoint for csghub
48
+ */} }
49
+ { {- define " csghub.external.public.endpoint" -} }
50
+ { {- $domain := include " csghub.external.public.domain" . } }
51
+ { {- if eq .Values.global.ingress.service.type " NodePort" } }
52
+ { {- if .Values.global.ingress.tls.enabled -} }
53
+ { {- printf " https://%s:%s" $domain " 30443" -} }
54
+ { {- else } }
55
+ { {- printf " http://%s:%s" $domain " 30080" -} }
56
+ { {- end } }
57
+ { {- else } }
58
+ { {- if .Values.global.ingress.tls.enabled -} }
59
+ { {- printf " https://%s" $domain -} }
60
+ { {- else } }
61
+ { {- printf " http://%s" $domain -} }
62
+ { {- end } }
63
+ { {- end } }
44
64
{ {- end } }
You can’t perform that action at this time.
0 commit comments