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

Is there a way to use AND logic when combining multiple retention rules? #20403

Open
MinerYang opened this issue May 8, 2024 Discussed in #20386 · 0 comments
Open

Is there a way to use AND logic when combining multiple retention rules? #20403

MinerYang opened this issue May 8, 2024 Discussed in #20386 · 0 comments
Labels
kind/requirement New feature or idea on top of harbor

Comments

@MinerYang
Copy link
Contributor

Discussed in #20386

Originally posted by hyeyoung-leee May 2, 2024
Hi,

In the following case, I want to combine multiple retention rules with AND logic.

For all artifacts in the project a,
Rule 1: retain the artifacts pulled within the last 15 days
Rue 2: retain the most recently pulled 15 artifacts

It was confirmed that although the number of artifacts was less than 15, the images were cleaned up because more than 15 days had passed since the last pull date.

How can I resolve?

@MinerYang MinerYang added the kind/requirement New feature or idea on top of harbor label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/requirement New feature or idea on top of harbor
Projects
None yet
Development

No branches or pull requests

1 participant