Skip to content

As a user I should be able to sync only images with digest #1909

@pranavkumar74980

Description

@pranavkumar74980

Expectation:
I want to sync images with digest tag in pulp container registry.
ex-

gcr.io/knative-releases/knative.dev/serving/cmd/controller@sha256:b11dbcba050eac9084edd021b7e0eee16b39c9e397b245bc4227266af1893404

For tagged images, I can successfully use the --include-tag or --exclude-tag filter options to filter specific tags.
However, the same approach does not work for SHA256 digests.
if I put --include-tags["sha256-b11dbcba050eac9084edd021b7e0eee16b39c9e397b245bc4227266af1893404"]

gcr repo

Image

Attempted to filter the image using --include-tag with different method, since I am unware that how pulp internally handles it inside the code :

--include-tag '["b11dbcba050eac9084edd021b7e0eee16b39c9e397b245bc4227266af1893404"]'
--include-tag '["@sha256:b11dbcba050eac9084edd021b7e0eee16b39c9e397b245bc4227266af1893404"]'
--include-tag '["sha256:b11dbcba050eac9084edd021b7e0eee16b39c9e397b245bc4227266af1893404"]'
--include-tag '["sha256-b11dbcba050eac9084edd021b7e0eee16b39c9e397b245bc4227266af1893404"]'

Observed Behavior
None of the above variations of the --include-tag filter work when targeting SHA256 digests.
The sync operation completes successfully but does not filter the specified image.
when trying to sync without providing filter option --include-tags then it works out fine.

Additional Notes
This issue is not documented in the official Pulp documentation.
Filtering by tags works as expected, but filtering by digests does not.
Please provide any solution or missing part, and how pulp internally take care of these kind of images.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions