mirror of
https://github.com/goharbor/harbor
synced 2024-09-21 08:25:48 +00:00
Merge pull request #7035 from heww/windows-image-replicate
Skip transfer blob for foreign layers
This commit is contained in:
commit
f5c3d308b2
|
@ -272,6 +272,12 @@ func (t *Transfer) transferLayers(tag string, blobs []distribution.Descriptor) e
|
||||||
}
|
}
|
||||||
|
|
||||||
digest := blob.Digest.String()
|
digest := blob.Digest.String()
|
||||||
|
|
||||||
|
if blob.MediaType == schema2.MediaTypeForeignLayer {
|
||||||
|
t.logger.Infof("blob %s of %s:%s is an foreign layer, skip", digest, repository, tag)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
exist, err := t.dstRegistry.BlobExist(digest)
|
exist, err := t.dstRegistry.BlobExist(digest)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.logger.Errorf("an error occurred while checking existence of blob %s of %s:%s on destination registry: %v",
|
t.logger.Errorf("an error occurred while checking existence of blob %s of %s:%s on destination registry: %v",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user