ratify
ratify copied to clipboard
Add ORAS OCI store blob eviction
What would you like to be added?
Currently, the ORAS store creates a local ORAS OCI store to cache artifact blobs locally. ORAS generates a blob descriptor index and stores the blob content using the OCI layout. There's no size limit or rotation mechanism to recycle blobs from this OCI store. This could lead to the Pod eventually running out of space. We need to investigate if ORAS has existing functionality for OCI store rotation or implement a higher layer index for an LRU cache (rotation via background task rotation, or lazily on every cache write)
Anything else you would like to add?
No response
Are you willing to submit PRs to contribute to this feature?
- [X] Yes, I am willing to implement it.
This issue has a dependency on https://github.com/oras-project/oras-go/issues/472