Merge pull request #11734 from ninjadq/fix_chart_absolute_url

Fix chart museum absolute url issue
This commit is contained in:
Daniel Jiang 2020-04-26 15:29:52 +08:00 committed by GitHub
commit 0c01484489
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -249,7 +249,10 @@ def parse_yaml_config(config_file_path, with_notary, with_clair, with_trivy, wit
# Chart configs
chart_configs = configs.get("chart") or {}
config_dict['chart_absolute_url'] = chart_configs.get('absolute_url') or ''
if chart_configs.get('absolute_url') == 'enabled':
config_dict['chart_absolute_url'] = True
else:
config_dict['chart_absolute_url'] = False
# jobservice config
js_config = configs.get('jobservice') or {}