Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-7617

Multiple auto-pruning policies per repository or organization

XMLWordPrintable

    • Icon: Feature Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • BU Product Work
    • False
    • None
    • False
    • Not Selected
    • 0% To Do, 0% In Progress, 100% Done

      Goal: Enable different pruning policies based on different tag naming patterns to cater for the different lifecycle of images in the same repository or organization.

      Background: Customers are seeking more flexibility when automating the image lifecycle in busy repositories and organizations. The difference in lifecycle is something that is often reflected in the name of the image tag. For example customers like to only keep the 3 latest images with the string nightly- in their repositories while the general policy for images in the same repository is to be deleted if they are older than 365 days.  Images tagged with the string release- may never be deleted.
      With today's auto-pruning policy system that only supports a single policy per repository it is not possible to build such nuanced policies.

      Requirements:

      • a user should be allowed to enter multiple separate auto-pruning policies for a given organization or repository
      • the rules will be processed without particular order and their individual result sets will be processed immediately before moving on to the next rule
        • for example, if an image is already subject for garbage collection by one rule, it cannot be excluded from pruning by another rule
        • as such the logical OR operation is applied conceptually across all policies in a given repo or org
      • when processing a repository-level auto-pruning policy set, all auto-pruning policies at the organization level (if any) are executed first
      • in the context of a repository a user should see all org-level auto-pruning policies in effect

              sdadi@redhat.com Sunanda Dadi
              DanielMesser Daniel Messer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: