Skip to content

Add AnnotationsOr field to hooks schema for OR-matching - #1112

Open
ajoshua2004 wants to merge 1 commit into
podman-container-tools:mainfrom
ajoshua2004:annotation-or
Open

Add AnnotationsOr field to hooks schema for OR-matching#1112
ajoshua2004 wants to merge 1 commit into
podman-container-tools:mainfrom
ajoshua2004:annotation-or

Conversation

@ajoshua2004

Copy link
Copy Markdown
Contributor

Add AnnotationsOr to the hook When struct, it behaves similar to Annotations but matches if any single entry matches, instead of requiring all of them. Bumped schema to v1.1.0 and v1.0.0 and v0.1.0 now forward into it via Read() which is what v0.1.0 used before for v1.0.0

Test

go test ./pkg/hooks/...

Hook annotation matching was strictly AND-only , with
`Or` field depreciated. AnnotationsOr matches on any
single entry, letting a hook combine AND and OR requirements.
v1.0.0 and v0.1.0 now forward into v1.1.0, new schema.

Signed-off-by: Joshua Arrevillaga <2004jarrevillaga@gmail.com>
@github-actions github-actions Bot added the common Related to "common" package label Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common Related to "common" package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant