mirror of
https://github.com/containers/podman.git
synced 2025-09-29 01:35:06 +08:00
vendor latest buildah
Pulls in fixes for determining insecure registries by removing redundant wrapper code and instead using the API of sysregistriesv2 directly. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
14
vendor/github.com/containers/buildah/common.go
generated
vendored
14
vendor/github.com/containers/buildah/common.go
generated
vendored
@ -6,10 +6,8 @@ import (
|
||||
"path/filepath"
|
||||
|
||||
cp "github.com/containers/image/copy"
|
||||
"github.com/containers/image/transports"
|
||||
"github.com/containers/image/types"
|
||||
"github.com/containers/libpod/pkg/rootless"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -34,12 +32,6 @@ func getCopyOptions(reportWriter io.Writer, sourceReference types.ImageReference
|
||||
|
||||
}
|
||||
}
|
||||
sourceInsecure, err := isReferenceInsecure(sourceReference, sourceCtx)
|
||||
if err != nil {
|
||||
logrus.Debugf("error determining if registry for %q is insecure: %v", transports.ImageName(sourceReference), err)
|
||||
} else if sourceInsecure {
|
||||
sourceCtx.OCIInsecureSkipTLSVerify = true
|
||||
}
|
||||
|
||||
destinationCtx := &types.SystemContext{}
|
||||
if destinationSystemContext != nil {
|
||||
@ -51,12 +43,6 @@ func getCopyOptions(reportWriter io.Writer, sourceReference types.ImageReference
|
||||
}
|
||||
}
|
||||
}
|
||||
destinationInsecure, err := isReferenceInsecure(destinationReference, destinationCtx)
|
||||
if err != nil {
|
||||
logrus.Debugf("error determining if registry for %q is insecure: %v", transports.ImageName(destinationReference), err)
|
||||
} else if destinationInsecure {
|
||||
destinationCtx.OCIInsecureSkipTLSVerify = true
|
||||
}
|
||||
|
||||
return &cp.Options{
|
||||
ReportWriter: reportWriter,
|
||||
|
Reference in New Issue
Block a user