Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Allow an --exclude tag option or compile against a regexp lib that allows negative look ahead (?!whatever) for purge tasks

Open
#59 11 comments 25 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@northtyphoon is already working on this.

Since Feb 17, 2023.

Assessment

This issue has not been assessed yet.

Description

enhancement

What is the problem you're trying to solve
We'd like to be able to call acr purge tasks to delete all images older than X days that aren't currently in use on our aks cluster. The current golang library used does not support negative look aheads.

Describe the solution you'd like
We'd like to generate an exclude list via:

kubectl get pods --all-namespaces -o=jsonpath="{..image}" -l app=<appName>

And feed that to acr purge with either an --exclude-tag or a negative lookahead regex on --filter

Additional context

Error: failed to dry-run purge: error parsing regexp: invalid or unsupported Perl syntax: `(?!`
Dominant language
Go
Stars
71
Forks
52
Avg merge
8d 10h
Merged PRs (30d)
4

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/acr-cli

All issues in Azure/acr-cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.