carvel-dev / carvel-dev/imgpkg

[perf] imgpkg seems to make lots of repeated requests to `/v2` endpoint

Open
#290 4 comments 0 reactions 0 assignees View on GitHub
priority/important-longterm
Dominant language
Go
Stars
284
Forks
70
PR merge metrics
No merged PRs in 30d

Description

# Description

running `imgpkg pull --debug` I notice lots of requests being made to the registry `/v2` endpoint, trying to get a token.

When pulling a bundle with lots of images / nested bundles, I think this may contribute to a performance degradation.

It would be nice to know:
- how much performance we lose by making repeated calls to `/v2` and assuming the registry requires a `bearer token`, repeated calls to an oauth server
- assuming it is causing excessive slowness, can we somehow cache the bearer token avoiding the need to make these repeated calls.

Reference:
- https://github.com/google/go-containerregistry/issues/740

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.