ratify icon indicating copy to clipboard operation
ratify copied to clipboard

Add ORAS OCI store blob eviction

Open akashsinghal opened this issue 2 years ago • 1 comments

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.

akashsinghal avatar Mar 09 '23 23:03 akashsinghal

This issue has a dependency on https://github.com/oras-project/oras-go/issues/472

yizha1 avatar Nov 14 '23 01:11 yizha1