When copying a bundle that have images in a private registry copy fails #146
Labels
bug
This issue describes a defect or unexpected behavior
carvel accepted
This issue should be considered for future work and that the triage process has been completed
What steps did you take:
Scenario: When a bundle has images that are in a private repository, copy the bundle to a different registry. When trying to copy the bundle again, imgpkg reaches the original location instead of the location the bundle is being copied from.
Private repository:
repo.io/my-img
repo.io/my-img
public.repo.io/my-bundle
todifferent.repo.io/my-bundle
different.repo.io/my-bundle
toyet-another.repo.io/my-bundle
What happened:
imgpkg tries to check if the images are bundles, based on the original location instead of using the
PrimaryLocation()
function.What did you expect:
imgpkg should try to check if an image is a bundle, based on the primary location, which first is the same repository as the bundle, and only after should check it from the original location.
Anything else you would like to add:
The problem starts in https://github.com/vmware-tanzu/carvel-imgpkg/blob/develop/pkg/imgpkg/bundle/bundle_images_lock.go#L41
Environment:
imgpkg --version
): 0.7.0Docker HUB
): gcr.io/etc/os-release
): macOS Big SurVote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.
The text was updated successfully, but these errors were encountered: