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.
This commit is contained in:
Ilya Kreymer 2024-01-18 11:13:03 -08:00 committed by GitHub
parent e43feedc43
commit ad19941318
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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")),