From ee9a0f37b4e2325e9ae695248a49e836cb240ce6 Mon Sep 17 00:00:00 2001 From: Peter Nancarrow Date: Tue, 10 Dec 2024 15:58:33 -0600 Subject: [PATCH] skip MONGO_URI in config env if not enabled --- charts/librechat/templates/configmap-env.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/librechat/templates/configmap-env.yaml b/charts/librechat/templates/configmap-env.yaml index 67593f9..0f1d990 100644 --- a/charts/librechat/templates/configmap-env.yaml +++ b/charts/librechat/templates/configmap-env.yaml @@ -12,6 +12,6 @@ data: {{- if not (dig "configEnv" "MEILI_HOST" "" .Values.librechat) }} MEILI_HOST: http://{{ include "meilisearch.fullname" .Subcharts.meilisearch }}.{{ .Release.Namespace | lower }}.svc.cluster.local:7700 {{- end }} - {{- if not (dig "configEnv" "MONGO_URI" "" .Values.librechat) | default "" }} + {{- if and (not (dig "configEnv" "MONGO_URI" "" .Values.librechat)) .Values.mongodb.enabled }} MONGO_URI: mongodb://{{ include "mongodb.service.nameOverride" .Subcharts.mongodb }}.{{ .Release.Namespace | lower }}.svc.cluster.local:27017/LibreChat {{- end }} \ No newline at end of file