sync: allow for saving to a subpath, closes #307

Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
Petu Eusebiu
2021-12-06 16:41:04 +02:00
committed by Ramkumar Chinchani
parent 96226af869
commit 63a75216ed
4 changed files with 168 additions and 5 deletions
+1
View File
@@ -367,6 +367,7 @@ func syncRegistry(regCfg RegistryConfig, storeController storage.StoreController
upstreamRef := ref
imageName := strings.Replace(upstreamRef.DockerReference().Name(), upstreamRegistryName, "", 1)
imageName = strings.TrimPrefix(imageName, "/")
imageStore := storeController.GetImageStore(imageName)