From ad199413184484120eaac5eb321898558ff6bb6d Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Thu, 18 Jan 2024 11:13:03 -0800 Subject: [PATCH] operator: use 'default' CRAWLER_CHANNEL if none is set (#1478) Use default channel if CRAWLER_CHANNEL not set in crawlconfig configmap, consistent with how other configmap settings for cronjobs are used. --- backend/btrixcloud/operator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/btrixcloud/operator.py b/backend/btrixcloud/operator.py index 0fcf8e0a..c90e6c8f 100644 --- a/backend/btrixcloud/operator.py +++ b/backend/btrixcloud/operator.py @@ -1645,7 +1645,7 @@ class BtrixOperator(K8sAPI): userid=userid, oid=oid, storage=org.storage, - crawler_channel=configmap["CRAWLER_CHANNEL"], + crawler_channel=configmap.get("CRAWLER_CHANNEL", "default"), scale=int(configmap.get("INITIAL_SCALE", 1)), crawl_timeout=int(configmap.get("CRAWL_TIMEOUT", 0)), max_crawl_size=int(configmap.get("MAX_CRAWL_SIZE", "0")),