Using Generated Informers
Link to reference documentation
Note: The and sources create different caches. Using both and sources in the same project will result in duplicate caches.This will not impact correctness, but will double the cache memory.
Note: The generated Informer should be used with the generated client.
Controllers may watch Resources using client-go generated Informers though the struct.
If Service default/foo is created, updated or deleted, then Reconcile will be called withnamespace: default, name: foo.
The generated InformerFactory must be manually wired into the Controller creation code.