mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-11 10:27:58 +01:00
Change storage_service.redirect.disabled in harbor.yml.tmpl to storage_service.redirect.deactivate (#14615)
* set to disable Signed-off-by: Peter Jakubis <balonik32@gmail.com> * move pr-14615 prepare migration version from 2.7.0 to 2.8.0 Signed-off-by: yminer <yminer@vmware.com> --------- Signed-off-by: Peter Jakubis <balonik32@gmail.com> Signed-off-by: yminer <yminer@vmware.com> Co-authored-by: Peter Jakubis <peter.jakubis@piano.io> Co-authored-by: Vadim Bauer <vb@container-registry.com> Co-authored-by: Wang Yan <wangyan@vmware.com> Co-authored-by: yminer <yminer@vmware.com>
This commit is contained in:
parent
2f380495bf
commit
284d58453c
@ -65,7 +65,7 @@ data_volume: /data
|
||||
# maxthreads: 100
|
||||
# # set disable to true when you want to disable registry redirect
|
||||
# redirect:
|
||||
# disabled: false
|
||||
# disable: false
|
||||
|
||||
# Trivy configuration
|
||||
#
|
||||
|
@ -105,7 +105,11 @@ storage_service:
|
||||
{% elif key == 'redirect' %}
|
||||
# # set disable to true when you want to disable registry redirect
|
||||
redirect:
|
||||
disabled: {{ value.disabled }}
|
||||
{% if value.disabled is not none %}
|
||||
disable: {{ value.disabled }}
|
||||
{% else %}
|
||||
disable: {{ value.disable }}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
# # storage backend, default is filesystem, options include filesystem, azure, gcs, s3, swift and oss
|
||||
# # for more info about this configuration please refer https://docs.docker.com/registry/configuration/
|
||||
@ -129,7 +133,7 @@ storage_service:
|
||||
# maxthreads: 100
|
||||
# # set disable to true when you want to disable registry redirect
|
||||
# redirect:
|
||||
# disabled: false
|
||||
# disable: false
|
||||
{% endif %}
|
||||
|
||||
# Trivy configuration
|
||||
|
@ -210,7 +210,7 @@ def parse_yaml_config(config_file_path, with_notary, with_trivy):
|
||||
config_dict['storage_provider_config'] = {}
|
||||
|
||||
if storage_config.get('redirect'):
|
||||
config_dict['storage_redirect_disabled'] = storage_config['redirect']['disabled']
|
||||
config_dict['storage_redirect_disabled'] = storage_config['redirect']['disable']
|
||||
|
||||
# Global proxy configs
|
||||
proxy_config = configs.get('proxy') or {}
|
||||
|
Loading…
Reference in New Issue
Block a user