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!