mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-28 03:27:41 +01:00
a2fc1bcfaf
1. Change way for quotas verification in upgrade pipeline, prepare specific size of image, then it's an known value for verifcation; 2. Add notary key rotate test; 3. For issue brought by docker 20, clean containerd cache is the only effective way, so both dockerd and containerd should be cache cleard and restarted; 4. Upgrade E2E Dockerfile for importing readable file size package, and other issues; 5. Uncomment project level robot account test in nightly. 6. Get DNS from local setting, and set it into docker deamon config file; Signed-off-by: danfengliu <danfengl@vmware.com>
6 lines
191 B
Python
6 lines
191 B
Python
from hurry.filesize import size
|
|
from hurry.filesize import alternative
|
|
|
|
def convert_int_to_readable_file_size(file_size):
|
|
return size(file_size, system=alternative).replace(' ', '')
|