Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use logical AND on chained label! filters instead of logical OR #20197

Closed

Conversation

jakecorrenti
Copy link
Member

@jakecorrenti jakecorrenti commented Sep 28, 2023

Fixes the filter matching for chained negated labels (label!) on containers, networks, and volumes. When pruning with chained label! filters, the filters will be ANDed instead of ORed.

Fixes: #17413

Does this PR introduce a user-facing change?

action required: Uses logical AND on chained label! filters instead of logical OR for containers, networks, and volumes.

Fixes the filter matching for chained negated labels (label!) on
containers, networks, and volumes. When pruning with chained label!
filters, the filters will be ANDed instead of ORed.

Fixes: 17413

Signed-off-by: Jake Correnti <[email protected]>
@openshift-ci openshift-ci bot added release-note-action-required do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Sep 28, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 28, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: jakecorrenti
Once this PR has been reviewed and has the lgtm label, please assign ygalblum for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jakecorrenti
Copy link
Member Author

Needs containers/common#1677 to merge first

@packit-as-a-service
Copy link

Cockpit tests failed for commit 515d711. @martinpitt, @jelly, @mvollmer please check.

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Jan 4, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. release-note-action-required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Multiple "label!" filters for prune are ORed unlike all other filter combos which are ANDed.
1 participant