-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Retention Policy Not Working When Configured via Harbor User Interface #19046
Labels
Comments
MinerYang
added
target/2.9.0
target/2.8.0
target/2.8.4
target/2.7.3
and removed
target/2.8.0
labels
Jul 31, 2023
AllForNothing
pushed a commit
to AllForNothing/harbor
that referenced
this issue
Aug 2, 2023
1. Fixes goharbor#19046 Signed-off-by: AllForNothing <[email protected]>
5 tasks
AllForNothing
pushed a commit
to AllForNothing/harbor
that referenced
this issue
Aug 2, 2023
1. Fixes goharbor#19046 Signed-off-by: AllForNothing <[email protected]>
AllForNothing
pushed a commit
to AllForNothing/harbor
that referenced
this issue
Aug 2, 2023
1. Fixes goharbor#19046 Signed-off-by: AllForNothing <[email protected]>
AllForNothing
added a commit
that referenced
this issue
Aug 3, 2023
Convert the string "0" to number 0 1. Fixes #19046 Signed-off-by: AllForNothing <[email protected]>
AllForNothing
pushed a commit
to AllForNothing/harbor
that referenced
this issue
Aug 3, 2023
1. Fixes goharbor#19046 Signed-off-by: AllForNothing <[email protected]>
AllForNothing
added a commit
that referenced
this issue
Aug 3, 2023
Convert the string "0" to number 0 1. Fixes #19046 Signed-off-by: AllForNothing <[email protected]>
AllForNothing
pushed a commit
to AllForNothing/harbor
that referenced
this issue
Aug 3, 2023
1. Fixes goharbor#19046 Signed-off-by: AllForNothing <[email protected]>
AllForNothing
added a commit
that referenced
this issue
Aug 3, 2023
1. Fixes #19046 Signed-off-by: AllForNothing <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description: I encountered an issue with the retention policy in Harbor version 2.8.1, where setting the policy through the user interface does not work as expected.
Steps to Reproduce:
Expected Behavior: I expected the artifacts with the "unknown" tag to be deleted, following the retention policy configured through the Harbor user interface.
Environment:
Additional Information:
I have tried configuring the retention policy for different tags and patterns, including "*-unknown," and none of them are being deleted as per the specified "retain: 0" configuration. The rest of the Harbor functionality appears to be working correctly.
Upon further investigation, I noticed that the retention policy works correctly when the "retain" value is set to a number greater than 1. For example, when I configured the policy to retain "2" artifacts with tags like "-feature", "-hotfix", etc., they were successfully retained.
However, setting the "retain" value to "0" for the retention policy, specifically for the "unknown" tag, does not lead to the expected behavior, and the artifacts are not deleted.
Please let me know if you need any further information to investigate this problem. Thank you!
The text was updated successfully, but these errors were encountered: