reconciler-runtime icon indicating copy to clipboard operation
reconciler-runtime copied to clipboard

Tracker watching dynamic resource types

Open Samze opened this issue 4 years ago • 2 comments

Hey Scott,

Something we have done a bunch of times using regular controller-runtime tooling is to setup watches for resources that arn't known about upfront. For example, we might have a CRD that allows for a resource GVK to be defined in the spec, so someone creates a CR configured for the RMQ resource and our controller will inspect that, perhaps create some RMQ resources and want to watch for changes.

It looks like the Tracker object can setup watches dynamically but only if the type is known upfront, as it stands requires a bldr.Watch call in the Setup of the Reconciler, is that correct?

Cheers, Sam

Samze avatar Feb 09 '21 16:02 Samze