crossplane icon indicating copy to clipboard operation
crossplane copied to clipboard

Support Namespaced Operations

Open stevendborrelli opened this issue 3 weeks ago • 2 comments

What problem are you facing?

When attempting to create a backup operation to address #5092 (run a hook before deletion), our attempts to create a backup Operation failed because the Composition is namespaced.

cannot compose resources: cannot apply cluster scoped composed resource "xr-webservice-hook-watchop" (a WatchOperation named webapp-webservice-a10f8c-deletion-hook) for a namespaced composite resource

While we could create a Kubernetes job in the namespace, Operations support watches and function pipelines. We'd like to create Operations in a Namespaced Composition..

How could Crossplane help solve your problem?

Support Namespaced Operations so they can be defined in Compositions.

stevendborrelli avatar Dec 04 '25 15:12 stevendborrelli

think we discussed this a bit in the original design document - for reference: https://github.com/crossplane/crossplane/pull/6557#discussion_r2162033912 and https://github.com/crossplane/crossplane/pull/6557#discussion_r2170835346

haarchri avatar Dec 04 '25 16:12 haarchri

Thanks for the pointer @haarchri . The topic of namespaces comes up in this thread: https://github.com/crossplane/crossplane/pull/6557#discussion_r2170835346

stevendborrelli avatar Dec 04 '25 16:12 stevendborrelli