Skip to content

Commit 9d0d447

Browse files
committed
remove if statement
1 parent 827c062 commit 9d0d447

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

charts/hdx-oss-v2/templates/configmaps/app-configmap.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ data:
1313
HYPERDX_APP_URL: "{{ .Values.hyperdx.appUrl }}"
1414
HYPERDX_LOG_LEVEL: "{{ .Values.hyperdx.logLevel }}"
1515
MINER_API_URL: "http://{{ include "hdx-oss.fullname" . }}-miner:5123"
16-
{{- if .Values.hyperdx.mongoUri }}
17-
MONGO_URI: {{ .Values.hyperdx.mongoUri | quote }}
18-
{{- else }}
19-
MONGO_URI: mongodb://{{ include "hdx-oss.fullname" . }}-mongodb:{{ .Values.mongodb.service.port }}/hyperdxv2
20-
{{- end }}
16+
MONGO_URI: {{ .Values.hyperdx.mongoUri | default (printf ...) }}
2117
NEXT_PUBLIC_SERVER_URL: "http://localhost:{{ .Values.hyperdx.apiPort }}"
2218
OTEL_SERVICE_NAME: "hdx-oss-api"
2319
USAGE_STATS_ENABLED: "{{ .Values.hyperdx.usageStatsEnabled | default true }}"

charts/hdx-oss-v2/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ hyperdx:
1414
usageStatsEnabled: true
1515
# Endpoint to send hyperdx logs/traces/metrics to.Defaults to the chart's otel collector endpoint.
1616
otelExporterEndpoint: http://{{ include "hdx-oss.fullname" . }}-otel-collector:{{ .Values.otel.httpPort }}
17-
mongoUri: mongodb://root:root1234@mongo-uri:27017/hyperdx?authSource=admin
17+
mongoUri: mongodb://{{ include "hdx-oss.fullname" . }}-mongodb:{{ .Values.mongodb.port }}/hyperdx
1818
annotations: {}
1919
# myAnnotation: "myValue"
2020
labels: {}

0 commit comments

Comments
 (0)