Azure / Azure/acr-cli

Add a limitation when purge untagged repository

Open
#457 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
70
Forks
52
Avg merge
3d 2h
Merged PRs (30d)
12

Description

**What is the problem you're trying to solve**

The purge task will timeout if the repository's manifests number high.
Because purge command will list all the manifests before deleting them.
In our case some repo has more than 140k manifests, and the purge task get stuck and not receive the response from ACR utils even when task killed of excceeding 6-hour timeout.

**Describe the solution you'd like**
Add a `--untag-limit` argument in purge command. It can limit the amount of untagged manifest for one time

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.