Skip to content

Allow require_resources to match all resources of a kind#213

Merged
negz merged 1 commit into
crossplane:mainfrom
negz:anything-goes
Jun 10, 2026
Merged

Allow require_resources to match all resources of a kind#213
negz merged 1 commit into
crossplane:mainfrom
negz:anything-goes

Conversation

@negz

@negz negz commented Jun 10, 2026

Copy link
Copy Markdown
Member

Description of your changes

require_resources rejected a selector with neither match_name nor match_labels set. Crossplane now treats such a selector as matching all resources of the given apiVersion and kind (crossplane/crossplane#7241).

This PR relaxes the validation to only reject match_name and match_labels both being set.

I have:

require_resources rejected a selector with neither match_name nor
match_labels set. Crossplane now treats such a selector as matching all
resources of the given apiVersion and kind (crossplane/crossplane#7241).

This change relaxes the validation to only reject match_name and
match_labels both being set.

Signed-off-by: Nic Cope <nicc@rk0n.org>
@negz negz requested a review from bobh66 as a code owner June 10, 2026 23:22
@negz negz merged commit e781637 into crossplane:main Jun 10, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants