Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GC: add support for GC policies #338

Merged
merged 1 commit into from
Jul 4, 2020
Merged

Commits on Jul 3, 2020

  1. GC: add support for GC policies

    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
    
    [1] https://github.com/opencontainers/distribution-spec
    [2] https://github.com/anuvu/zot
    
    Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
    rchincha committed Jul 3, 2020
    Configuration menu
    Copy the full SHA
    340dd0d View commit details
    Browse the repository at this point in the history