-
Notifications
You must be signed in to change notification settings - Fork 2.6k
use cached blob statter in ManifestService if available #4595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use cached blob statter in ManifestService if available #4595
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PTAL @thaJeztah
registry/storage/registry.go
Outdated
"github.com/distribution/reference" | ||
|
||
"github.com/distribution/distribution/v3" | ||
"github.com/distribution/distribution/v3/registry/storage/cache" | ||
storagedriver "github.com/distribution/distribution/v3/registry/storage/driver" | ||
"github.com/distribution/reference" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we change the convention for grouping in general? If not, then it's better to keep this separate, so that the commits don't make unrelated changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was my default format settings, didn't notice, thanks, reverted this change
"github.com/distribution/reference" | ||
"github.com/opencontainers/go-digest" | ||
"github.com/opencontainers/image-spec/specs-go" | ||
v1 "github.com/opencontainers/image-spec/specs-go/v1" | ||
|
||
"github.com/distribution/distribution/v3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
func createManifestListDescriptor(t *testing.T, testname string, manifest distribution.Manifest, platformSpec *manifestlist.PlatformSpec) manifestlist.ManifestDescriptor { | ||
func createManifestListDescriptor( | ||
t *testing.T, testname string, manifest distribution.Manifest, platformSpec *manifestlist.PlatformSpec, | ||
) manifestlist.ManifestDescriptor { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one as well (I think this is only a formatting change, correct?).
@Ollegio can you squash? |
Signed-off-by: Oleg Gnusarev <ognusarev@mts.ru>
483133f
to
b30274f
Compare
@milosgajdos ok, done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
LGTM
Fixes #4569, #3322