Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add kafka client pool Signed-off-by: Calum Murray <cmurray@redhat.com> * Use clientpool for consumergroups Signed-off-by: Calum Murray <cmurray@redhat.com> * Handle nil secret case Signed-off-by: Calum Murray <cmurray@redhat.com> * fix: kafka connections aren't closed while in use, max connections is properly enforced Signed-off-by: Calum Murray <cmurray@redhat.com> * Fix clientpool concurrency issues Signed-off-by: Calum Murray <cmurray@redhat.com> * Switch remaining sarama.NewClient and sarama.NewClusterAdmin references to use the clientpool Signed-off-by: Calum Murray <cmurray@redhat.com> * updated codegen Signed-off-by: Calum Murray <cmurray@redhat.com> * feat: added replicating lru cache Signed-off-by: Calum Murray <cmurray@redhat.com> * test: added unit tests for replicating lru cache Signed-off-by: Calum Murray <cmurray@redhat.com> * feat: use new lru cache for the client pool Signed-off-by: Calum Murray <cmurray@redhat.com> * updated deps Signed-off-by: Calum Murray <cmurray@redhat.com> * feat: connections are re-created when secrets are rotated Signed-off-by: Calum Murray <cmurray@redhat.com> * refactor to use channels Signed-off-by: Calum Murray <cmurray@redhat.com> * Set better defaults for max clients, switched to use generics for better typing Signed-off-by: Calum Murray <cmurray@redhat.com> * small fixes Signed-off-by: Calum Murray <cmurray@redhat.com> * take simpler approach, fix go.mod Signed-off-by: Calum Murray <cmurray@redhat.com> * lots of changes, need to test Signed-off-by: Calum Murray <cmurray@redhat.com> * fix deadlock Signed-off-by: Calum Murray <cmurray@redhat.com> * always return the value to the cache if something went wrong Signed-off-by: Calum Murray <cmurray@redhat.com> * more fixes Signed-off-by: Calum Murray <cmurray@redhat.com> * add a lot of logging for debugging Signed-off-by: Calum Murray <cmurray@redhat.com> * removed extra logs Signed-off-by: Calum Murray <cmurray@redhat.com> * fix linter warnings Signed-off-by: Calum Murray <cmurray@redhat.com> * fix build issues Signed-off-by: Calum Murray <cmurray@redhat.com> * added more unit tests, refactored a bit to improve testability Signed-off-by: Calum Murray <cmurray@redhat.com> * Add more unit tests Signed-off-by: Calum Murray <cmurray@redhat.com> * fix unit tests Signed-off-by: Calum Murray <cmurray@redhat.com> * fix import styling Signed-off-by: Calum Murray <cmurray@redhat.com> * increase base client capacity Signed-off-by: Calum Murray <cmurray@redhat.com> * use zero sized chan for capacity Signed-off-by: Calum Murray <cmurray@redhat.com> * small fixes for client cleanup overloading Signed-off-by: Calum Murray <cmurray@redhat.com> * made the expiring cache more generic Signed-off-by: Calum Murray <cmurray@redhat.com> * fixes to the prober cache to make it more generic Signed-off-by: Calum Murray <cmurray@redhat.com> * small clientpool fixes, as well as refactoring the reconcilers for better error checking of broken pipes Signed-off-by: Calum Murray <cmurray@redhat.com> * fix double secret handler mistake Signed-off-by: Calum Murray <cmurray@redhat.com> * goimports Signed-off-by: Calum Murray <cmurray@redhat.com> * fix double imports error Signed-off-by: Calum Murray <cmurray@redhat.com> * refactor to attach clientpool to context rather than use global variable Signed-off-by: Calum Murray <cmurray@redhat.com> * fix: unit tests now have clientpool attached to ctx Signed-off-by: Calum Murray <cmurray@redhat.com> * fix: namespaced trigger controller tests also have clientpool on ctx Signed-off-by: Calum Murray <cmurray@redhat.com> * fixed double import after merge Signed-off-by: Calum Murray <cmurray@redhat.com> * refactor: use proxy sarama client instead of return client funcs Signed-off-by: Calum Murray <cmurray@redhat.com> * fix: cache test now expects updated behaviour Signed-off-by: Calum Murray <cmurray@redhat.com> * fix: fixed nil pointer exceptions and topic offset fetch Signed-off-by: Calum Murray <cmurray@redhat.com> * cleanup: removed unnecessary log Signed-off-by: Calum Murray <cmurray@redhat.com> * address review comments Signed-off-by: Calum Murray <cmurray@redhat.com> --------- Signed-off-by: Calum Murray <cmurray@redhat.com>
- Loading branch information