Page MenuHomePhabricator

[maintain-harbor] Ensure that the created repos have a policy rule to retain only the 5 latest pushed images
Closed, ResolvedPublic


Currently we have no cleanup policies, so people will start hitting the quotas quite fast.

This task is to add some functionality to maintain-harbor to both, create the projects with a rule to keep only the last 5 pushed images (in the UI under Policy->rules) and to make sure that any existing repo has it too (this could be a one-off).


ReferenceSource BranchDest BranchAuthorTitle
repos/cloud/toolforge/maintain-harbor!8add_retention_policymasterdcaroAdd retention policy to the projects
Customize query in GitLab

Event Timeline

Ran the script once, now all the projects have the retention policy.

dcaro changed the task status from Open to In Progress.May 11 2023, 8:00 AM
dcaro moved this task from Next Up to In Progress on the Toolforge Build Service (Iteration 14) board.

Enabled garbage collection on tools harbor too, that will remove all the untagged images every hour or so.

dcaro changed the task status from In Progress to Stalled.May 11 2023, 4:32 PM