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

Avoid saving invalid policies and display an error message for autopruning

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • quay-v3.12.3
    • quay
    • False
    • None
    • False
    • User Experience
    • Quay Enterprise

      Currently it is possible to define a registry wide auto-prune policy (e.g. age_of_tags: 1d) and a namespace wide auto-prune policy that have this value age_of_tags: 2d ...
      That's not correct!
      The expected policy set in the organization (the namespace wide one) is ignored!
      Same for a repository policy like age_of_tags: 3d ...

      The precedence rule is:
      Registry -> Namespace -> Repository

      This will work:
      Registry age_of_tags: 3d
      Namespace: age_of_tags: 2d
      Repository: age_of_tags: 1d

      This can be defined without any error, but won't work:
      Registry age_of_tags: 1d
      Namespace: age_of_tags: 2d
      Repository: age_of_tags: 3d

      Throw an error for invalid policies!
      Do not save them!
      Do not show "Successfully created ..."if the policy is invalid!

              Unassigned Unassigned
              rhn-gps-lbohnsack Lars Bohnsack
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: