crossplane icon indicating copy to clipboard operation
crossplane copied to clipboard

Watch Operation should be able to match multiple Kinds

Open stevendborrelli opened this issue 3 months ago • 3 comments

What problem are you facing?

Currently the watch https://docs.crossplane.io/latest/api/#WatchOperation-spec-watch operation only supports one kind.

Imagine a use case where a platform owner wants to automatically create a Usage object for every resource that has a certain label to prevent accidental deletion, or wants to Watch all the resources in *database.m.crossplane.io apiGroup.

How could Crossplane help solve your problem?

Implement a more flexible match for Watch Operations.

stevendborrelli avatar Sep 03 '25 12:09 stevendborrelli

Watches are pretty expensive - I think we need to be careful about a controller that could start watching tens or hundreds of types.

For small sets (2, 3, 4 watched kinds) would it be feasible to create a mostly identical WatchOperation per kind? I know its a bit repetitive but I suspect it'll lead to a simpler and easier to reason about system.

negz avatar Sep 04 '25 18:09 negz

@negz this is a good point. Let's see how watch operations are used in practice.

stevendborrelli avatar Sep 05 '25 13:09 stevendborrelli

Crossplane does not currently have enough maintainers to address every issue and pull request. This issue has been automatically marked as stale because it has had no activity in the last 90 days. It will be closed in 14 days if no further activity occurs. Leaving a comment starting with /fresh will mark this issue as not stale.

github-actions[bot] avatar Dec 05 '25 01:12 github-actions[bot]