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:
parent
e43feedc43
commit
ad19941318
@ -1645,7 +1645,7 @@ class BtrixOperator(K8sAPI):
|
|||||||
userid=userid,
|
userid=userid,
|
||||||
oid=oid,
|
oid=oid,
|
||||||
storage=org.storage,
|
storage=org.storage,
|
||||||
crawler_channel=configmap["CRAWLER_CHANNEL"],
|
crawler_channel=configmap.get("CRAWLER_CHANNEL", "default"),
|
||||||
scale=int(configmap.get("INITIAL_SCALE", 1)),
|
scale=int(configmap.get("INITIAL_SCALE", 1)),
|
||||||
crawl_timeout=int(configmap.get("CRAWL_TIMEOUT", 0)),
|
crawl_timeout=int(configmap.get("CRAWL_TIMEOUT", 0)),
|
||||||
max_crawl_size=int(configmap.get("MAX_CRAWL_SIZE", "0")),
|
max_crawl_size=int(configmap.get("MAX_CRAWL_SIZE", "0")),
|
||||||
|
Loading…
Reference in New Issue
Block a user