Allow an --exclude tag option or compile against a regexp lib that allows negative look ahead (?!whatever) for purge tasks
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
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
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/acr-cli
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
Proposal: Add Minimum and Maximum Retention Policies to Acr PurgePossibly taken @gildardogmsft claimed this 10 days ago. Openenhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
Azure/acr-cli#670 · 2 reactions ·
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
Azure/acr-cli#644 · 3 comments ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 52/100
Azure/acr-cli#621 · 2 comments ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
OpenTollGate/tollgate-module-basic-go#833 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
siyuan-note/siyuan#20353 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
attributes-natural-language "en-US" is rejected by PAPPL >= 1.4.12 printers (RFC 8011 requires lowercase)Possibly taken @ChrisEdgington claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 84/100
OpenPrinting/ipp-usb#140 ·