File tree Expand file tree Collapse file tree 2 files changed +52
-2
lines changed
Expand file tree Collapse file tree 2 files changed +52
-2
lines changed Original file line number Diff line number Diff line change 1414 HYPERDX_LOG_LEVEL : " {{ .Values.hyperdx.logLevel }}"
1515 MINER_API_URL : " http://{{ include " hdx-oss.fullname" . }}-miner:5123"
1616 MONGO_URI : " {{ tpl .Values.hyperdx.mongoUri . }}"
17- NEXT_PUBLIC_SERVER_URL : " http://localhost :{{ .Values.hyperdx.apiPort }}"
17+ NEXT_PUBLIC_SERVER_URL : " {{ .Values.hyperdx.appUrl }} :{{ .Values.hyperdx.apiPort }}"
1818 OTEL_SERVICE_NAME : " hdx-oss-api"
1919 USAGE_STATS_ENABLED : " {{ .Values.hyperdx.usageStatsEnabled | default true }}"
2020 CRON_IN_APP_DISABLED : " {{ .Values.tasks.enabled | default false }}"
Original file line number Diff line number Diff line change @@ -38,6 +38,56 @@ tests:
3838 - equal :
3939 path : data.CRON_IN_APP_DISABLED
4040 value : " false"
41+ - equal :
42+ path : data.NEXT_PUBLIC_SERVER_URL
43+ value : " http://localhost:8000"
4144 - matchRegex :
4245 path : data.MONGO_URI
43- pattern : mongodb://.*-mongodb:27017/hyperdx
46+ pattern : mongodb://.*-mongodb:27017/hyperdx
47+
48+ - it : should render NEXT_PUBLIC_SERVER_URL with custom appUrl and apiPort
49+ set :
50+ hyperdx :
51+ apiPort : 9000
52+ appPort : 4000
53+ appUrl : https://my-hyperdx.example.com
54+ logLevel : debug
55+ usageStatsEnabled : false
56+ mongodb :
57+ port : 27017
58+ tasks :
59+ enabled : true
60+ asserts :
61+ - isKind :
62+ of : ConfigMap
63+ - equal :
64+ path : data.NEXT_PUBLIC_SERVER_URL
65+ value : " https://my-hyperdx.example.com:9000"
66+ - equal :
67+ path : data.FRONTEND_URL
68+ value : " https://my-hyperdx.example.com:4000"
69+ - equal :
70+ path : data.HYPERDX_APP_URL
71+ value : " https://my-hyperdx.example.com"
72+
73+ - it : should render NEXT_PUBLIC_SERVER_URL with HTTP URL
74+ set :
75+ hyperdx :
76+ apiPort : 8080
77+ appPort : 3000
78+ appUrl : http://192.168.1.100
79+ asserts :
80+ - equal :
81+ path : data.NEXT_PUBLIC_SERVER_URL
82+ value : " http://192.168.1.100:8080"
83+
84+ - it : should render NEXT_PUBLIC_SERVER_URL with HTTPS URL
85+ set :
86+ hyperdx :
87+ apiPort : 443
88+ appPort : 80
89+ appUrl : https://secure.hyperdx.io
90+ asserts :
91+ - equal :
92+ path : data.NEXT_PUBLIC_SERVER_URL
93+ value : " https://secure.hyperdx.io:443"
You can’t perform that action at this time.
0 commit comments