Enh Req - Support filter over Annotations from image metadata

Open
#182 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
azure, docker, go
Domain
cli, cloud

Research direction

Start with the acr purge command and trace its existing image filtering options and metadata handling. Define how --annotations key=value should match image annotations, then verify that purge selects only images containing the requested pair, including behavior for missing annotations.

Written by the indexing model from the issue text.

Description

enhancement

What is the problem you're trying to solve
Docker images inside their metadata may have Annotations filled with key/value pairs. At the moment there is not possible to filter/select only those images, which has specific key=value inside Annotations present.

Describe the solution you'd like
Would like to have extra option like --annotations key=value, so filtering could work on that.

Additional context
Such functionality will be of importance while using acr purge command

Dominant language
Go
Stars
70
Forks
52
Avg merge
2d 12h
Merged PRs (30d)
10

Contributor guide

Open the contributing guide

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.