-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For our dist-spec implementation [1][2], we have a use case where we use umoci's GC code to clean up orphaned blobs. The issue is that as per dist-spec layer upload and manifest updates are two different API calls and typically in that order, which means layers begin life as orphans. Adding the proposed patch allows us to: a) mitigate the above issue b) have a generic policy framework for future expansion Note that GC() now uses Paths() instead of Reachable() [1] https://github.com/opencontainers/distribution-spec [2] https://github.com/anuvu/zot Signed-off-by: Ramkumar Chinchani <[email protected]>
- Loading branch information
Showing
2 changed files
with
165 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters