From 5176b19cc397a1210935db0dd87cb5f9e83529d4 Mon Sep 17 00:00:00 2001 From: Brendan Galloway Date: Mon, 30 Oct 2023 15:35:12 +0200 Subject: [PATCH] helm(fix): force APSCHEDULER info to populate --- .../sefaria-project/templates/configmap/mongo-destroy.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/helm-chart/sefaria-project/templates/configmap/mongo-destroy.yaml b/helm-chart/sefaria-project/templates/configmap/mongo-destroy.yaml index f68339f610..a6c0b51e4d 100644 --- a/helm-chart/sefaria-project/templates/configmap/mongo-destroy.yaml +++ b/helm-chart/sefaria-project/templates/configmap/mongo-destroy.yaml @@ -37,6 +37,12 @@ data: DB_NAME=$SEFARIA_DB {{ end }} + echo "APSCHEDULER: ${APSCHEDULER_NAME}" + + if [[ -z "$APSCHEDULER_NAME" ]]; then + APSCHEDULER_NAME={{ tpl .Values.localSettings.APSCHEDULER_NAME . | quote }} + fi + APSCHEDULER_URI="${URI}${MONGO_HOST}/${APSCHEDULER_NAME}?ssl=false&authSource=admin" URI="${URI}${MONGO_HOST}/${DB_NAME}?ssl=false&authSource=admin"