Commit graph

10 commits

Author SHA1 Message Date
2883c54e67 fix delete_old_oci_images.py
Previously, the delete_old_oci_images.py script sometimes caused a
traceback when trying to get the date from the JSON response for an OIC
image blob. This was because it was trying to read a JSON value that
didnt exist in some cases.

This change simply skips those images -- might update this in the future
to fins a fallback date to use, but for now just skip them.

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2023-04-28 13:58:24 +10:00
Clement Verna
98f48a4188 delete_old_oci_images: Add manifest list to the Accept header
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-06-04 13:25:01 +02:00
Clement Verna
9ec1b2190b delete_old_oci_images: fix old f-string format
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-06-04 13:14:45 +02:00
Clement Verna
8093e55cdd delete_old_oci_images: fix formating of the script
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-06-04 13:12:39 +02:00
Clement Verna
6760916870 delete_old_oci_images: fix the module fail format
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-06-04 13:08:02 +02:00
Clement Verna
34421de5f0 delete_old_oci_images: manage repositories that don't have tags
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-06-04 12:58:48 +02:00
Clement Verna
9bda00c548 delete_old_oci_images: make sure we do not log the password
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-06-04 12:43:53 +02:00
Clement Verna
986d7fb885 delete_old_oci_images: Use format string instead of f-strings
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-06-04 11:44:22 +02:00
Clement Verna
e4d8cb4e79 delete_old_oci_images: use Python 3 interpreter
Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-06-04 09:46:19 +02:00
Clement Verna
6318c8178e oci-registry-prune: New playbook to prune old OCI images from the candidate registry.
This commit adds a new module and a new playbook used to delete images
from the candidate-registry that are older than 30 days.
The module looks for images tags that are older than 30 days and delete the
tags.
The playbook run the module and the registry garbage collection to reclaim
the disk space.

Signed-off-by: Clement Verna <cverna@tutanota.com>
2019-06-04 09:18:37 +02:00