Skip to content
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

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

Open
pranavkumar74980 opened this issue Jan 28, 2025 · 0 comments
Open

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

pranavkumar74980 opened this issue Jan 28, 2025 · 0 comments

Comments

@pranavkumar74980
Copy link

I am trying to synchronize container images, but I cannot find an option to filter images using SHA256 digests.
Example:
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.

Steps to Reproduce

Run the following command to create a container remote:

pulp container remote create --name name_remote --url https://gcr.io --upstream-name knative-releases/knative.dev/serving/cmd/controller --policy on_demand

Attempted to filter the image using --include-tag :

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

Run a sync operation.

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.
If no --include-tag filter is specified, the image is successfully pulled.

Expected Behavior
The --include-tag or a similar filter should allow filtering by SHA256 digests.

Additional Notes
This issue is not documented in the official Pulp documentation.
Filtering by tags works as expected, but filtering by digests does not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Not Started
Development

No branches or pull requests

1 participant