]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commit
prune-quay.py: stop using image_id, optimize 'same image' search
authorDan Mick <dmick@redhat.com>
Fri, 28 Jun 2024 21:58:50 +0000 (14:58 -0700)
committerDan Mick <dan.mick@redhat.com>
Tue, 2 Jul 2024 22:24:38 +0000 (15:24 -0700)
commit9c79656141eff36e48409388956c8c26857aeaf0
treed8f2a068db4361b6b7e80ba9a54dd8b4da48d6a1
parenta3903ebb67a56df83900e48130afacfa3d9d3c00
prune-quay.py: stop using image_id, optimize 'same image' search

image_id has apparently gone away; take the opportunity to be
a bit more efficient: keep a map of digests to tagnames, and when
deleting a full tag, also delete any tags that have the same
digest.  Only verbosely report if any new tags were marked.

Signed-off-by: Dan Mick <dmick@redhat.com>
quay-pruner/build/prune-quay.py