Skip to content

Include annotations in filters #28562

@mildred

Description

@mildred

Feature request description

I'd like to have the --filter option to include annotations.

This could be used for #23207, the podman-restart.service could filter out containers with annotations that excludes the container from the restart:

/usr/bin/podman $LOGGING start --all --filter restart-policy=always --filter annotation!=io.container.no-restart

Suggest potential solution

Filters by annotations should be made possible the same way filtering is done by labels. Both positive and negative filters.

Have you considered any alternatives?

Filtering by label is an alternative but probably less suited for the problem

Additional context

No response

Metadata

Metadata

Assignees

Labels

ContribfestBugs for Contribfestkind/featureCategorizes issue or PR as related to a new feature.volunteers-wantedIssues good for community/volunteer contributions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions