mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-21 23:21:26 +01:00
fix(prepaire,clair): disable clair updaters when its interval is 0
Closes #9961 Signed-off-by: He Weiwei <hweiwei@vmware.com>
This commit is contained in:
parent
f3f481dd12
commit
b8308f41a0
@ -223,7 +223,8 @@ def parse_yaml_config(config_file_path, with_notary, with_clair, with_chartmuseu
|
||||
# Clair configs, optional
|
||||
clair_configs = configs.get("clair") or {}
|
||||
config_dict['clair_db'] = 'postgres'
|
||||
config_dict['clair_updaters_interval'] = clair_configs.get("updaters_interval") or 12
|
||||
updaters_interval = clair_configs.get("updaters_interval", None)
|
||||
config_dict['clair_updaters_interval'] = 12 if updaters_interval is None else updaters_interval
|
||||
|
||||
# Chart configs
|
||||
chart_configs = configs.get("chart") or {}
|
||||
|
Loading…
Reference in New Issue
Block a user