Closed
Description
In order to be able to write a controller that has informers in multiple clusters, one has to inject a cache into source.Kind
. Options to do this include:
- Just call
kind.InjectCache
, it has a nilcheck that will prevent theinjectCache
call from the controller to overwrite the cache. However this behavior doesn't have tests and may go away in the future - Write a wrapper around
kind.Source
that implementsInjectCache
with the nilcheck - Write a wrapper around
kind.Source
that does not implementinject.Cache
We should agree on one option, declare it the supported way to build multicluster controllers and probably document it.
Metadata
Metadata
Assignees
Labels
No labels