-
Notifications
You must be signed in to change notification settings - Fork 24
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
Do not delete sig/att/sbom if subject image exists #116
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🌮
|
||
with self.assertRaisesRegex(AssertionError, expected_regex="no logs of level INFO"): | ||
with self.assertLogs(LOGGER) as logs: | ||
remove_tags(tags, QUAY_TOKEN, "some", "repository", dry_run=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does not make sense to set dry_run=True
here. When it is True, delete_image_tag
will be never called under whatever conditions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well it was in that other test above :)
added caching, so we will query manifest only once |
when getting all tags in registry we are listing only active tags, if tag was removed for the image, image still will be in registry if it is part of image index if manifest digest isn't present in any of active tags, try query also manifest digest to verify its presence also re-enable pruner STONEBLD-2466 Signed-off-by: Robert Cerven <[email protected]>
@rcerven: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
when getting all tags in registry we are listing only active tags, if tag was removed for the image, image still will be in registry if it is part of image index
if manifest digest isn't present in any of active tags, try query also manifest digest to verify its presence
STONEBLD-2466