Skip to content

c8d: fix support for pull by digest#46819

Merged
thaJeztah merged 1 commit intomoby:masterfrom
dmcgowan:c8d-fix-pull-by-digest
Nov 16, 2023
Merged

c8d: fix support for pull by digest#46819
thaJeztah merged 1 commit intomoby:masterfrom
dmcgowan:c8d-fix-pull-by-digest

Conversation

@dmcgowan
Copy link
Member

Pull by digest regressed in #46618, causing a fallback to the pull all tags logic. The pullTag logic already properly handles tag or digest.

Fixes at least 3 tests from containerd integration:

  • TestDockerRegistrySuite/TestInspectImageWithDigests
  • TestDockerRegistrySuite/TestListImagesWithDigests
  • TestDockerRegistrySuite/TestPullByDigestNoFallback

Signed-off-by: Derek McGowan <derek@mcg.dev>
@rumpl rumpl added status/2-code-review area/images Image Distribution containerd-integration Issues and PRs related to containerd integration labels Nov 15, 2023
@rumpl rumpl added this to the 25.0.0 milestone Nov 15, 2023
@rumpl rumpl closed this Nov 16, 2023
@rumpl rumpl reopened this Nov 16, 2023
Copy link
Member

@rumpl rumpl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kicked the CI, it looks like it really does fix these tests :) LGTM

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

we really need to make "all" a separate option in the API (or to just require passing all refences)

@thaJeztah thaJeztah merged commit 604f4ee into moby:master Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/images Image Distribution containerd-integration Issues and PRs related to containerd integration status/2-code-review

Projects

Development

Successfully merging this pull request may close these issues.

3 participants