Revert "added a 'doNotMirrorTags' map to skip un-mirrorable versions"

This reverts commit 0324434dcc.
This commit is contained in:
Matt Woodson 2021-09-13 15:54:16 -04:00
Родитель 0324434dcc
Коммит 2a99a8cdb8
1 изменённых файлов: 0 добавлений и 13 удалений

Просмотреть файл

@ -18,13 +18,6 @@ import (
"github.com/sirupsen/logrus"
)
// These are versions that need to be skipped because they are unable
// to be mirrored
var doNotMirrorTags = map[string]bool{
"4.7.27": true,
"4.8.8": true,
}
func Copy(ctx context.Context, dstreference, srcreference string, dstauth, srcauth *types.DockerAuthConfig) error {
policyctx, err := signature.NewPolicyContext(&signature.Policy{
Default: signature.PolicyRequirements{
@ -99,12 +92,6 @@ func Mirror(ctx context.Context, log *logrus.Entry, dstrepo, srcrelease string,
wg.Add(1)
go func() {
for w := range ch {
// skip the mirror for the tag if found in doNotMirrorTags map
if doNotMirrorTags[w.tag] {
log.Printf("Skipping %s", w.tag)
break
}
log.Printf("mirroring %s", w.tag)
var err error
for retry := 0; retry < 6; retry++ {