diff --git a/make/prepare b/make/prepare index 8e6371f96..a62669990 100755 --- a/make/prepare +++ b/make/prepare @@ -35,7 +35,7 @@ set -e # Copy harbor.yml to input dir if [[ ! "$1" =~ ^\-\- ]] && [ -f "$1" ] then - cp $1 $input_dir/harbor.yml + cp $1 $input_dir/harbor.yml else cp ${harbor_prepare_path}/harbor.yml $input_dir/harbor.yml fi @@ -45,10 +45,10 @@ secret_dir=${data_path}/secret config_dir=$harbor_prepare_path/common/config # Run prepare script -docker run --rm -v $input_dir:/input \ - -v $harbor_prepare_path:/compose_location \ - -v $config_dir:/config \ - -v $secret_dir:/secret \ +docker run --rm -v $input_dir:/input:z \ + -v $harbor_prepare_path:/compose_location:z \ + -v $config_dir:/config:z \ + -v $secret_dir:/secret:z \ goharbor/prepare:dev $@ echo "Clean up the input dir" diff --git a/src/portal/lib/src/config/registry-config.component.spec.ts b/src/portal/lib/src/config/registry-config.component.spec.ts index d938115da..0e118ff55 100644 --- a/src/portal/lib/src/config/registry-config.component.spec.ts +++ b/src/portal/lib/src/config/registry-config.component.spec.ts @@ -96,7 +96,7 @@ describe('RegistryConfigComponent (inline template)', () => { it('should render configurations to the view', async(() => { expect(spy.calls.count()).toEqual(1); - expect(spySystemInfo.calls.count()).toEqual(1); + expect(spySystemInfo.calls.count()).toEqual(2); fixture.detectChanges(); fixture.whenStable().then(() => { diff --git a/src/portal/lib/src/config/system/system-settings.component.html b/src/portal/lib/src/config/system/system-settings.component.html index e5bef3026..ee21db66b 100644 --- a/src/portal/lib/src/config/system/system-settings.component.html +++ b/src/portal/lib/src/config/system/system-settings.component.html @@ -4,23 +4,27 @@
-
- + {{'CONFIG.TOOLTIP.PRO_CREATION_RESTRICTION' | translate}}
-
-