From 97d66ed6cd80cfe086a2b9d1448ee797b7794933 Mon Sep 17 00:00:00 2001 From: vitor-aignosi Date: Tue, 1 Jul 2025 15:15:18 -0300 Subject: [PATCH] SIENTIAPDE-1110 Add MongoDB configuration to values.yaml and integrate MongoDB support in worker.py --- scouter/worker/worker.py | 6 ++++-- values.yaml | 9 +++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/scouter/worker/worker.py b/scouter/worker/worker.py index 8ccfa91..818d129 100644 --- a/scouter/worker/worker.py +++ b/scouter/worker/worker.py @@ -15,7 +15,8 @@ with workflow.unsafe.imports_passed_through(): from scouter.utils.connectors_config import ( build_postgres_config, build_kafka_config, - build_redis_config + build_redis_config, + build_mongodb_config ) @@ -41,7 +42,8 @@ async def main(): notification_handler=notification_handler, postgres_config=build_postgres_config(), kafka_config=build_kafka_config(), - redis_config=build_redis_config() + redis_config=build_redis_config(), + mongodb_config=build_mongodb_config() ) logger.info('Starting Faker Activities...') diff --git a/values.yaml b/values.yaml index 8006b67..037bc0c 100644 --- a/values.yaml +++ b/values.yaml @@ -173,6 +173,15 @@ env: - name: TEMPORAL_NAMESPACE value: "default" + - name: MONGODB_USERNAME + value: "root" + - name: MONGODB_PASSWORD + value: "wKZDbMNU1c" + - name: MONGODB_URL + value: "my-release-mongodb.mongodb.svc.cluster.local:27017" + - name: MONGODB_DATABASE + value: "sientia" + ssh: enabled: true secretName: git-ssh-key-sientia-scouter-worker