Skip to content

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

@dominicdejacomo

Description

@dominicdejacomo

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: `(?!`

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions