-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(kubernetes): Fix all agents handling on-demand requests (#4110)
* test(kubernetes): Add tests to KubernetesCoreCachingAgent The next commit will fix a bug in the Kubernetes caching agents; there are currently no tests validating these agents. Add some tests on the KubernetesCoreCachingAgent. * perf(kubernetes): Fix all agents handling on-demand requests Currently sending an on-demand cache update for a resource that is not namespaced will cause all caching agents to try to handle the update. This can cause a very high load on redis if there are a lot of agents (as might be expected in a large installation of Spinnaker). Designate one agent to handle requests that are not namespaced instead of having them handled by all agents. * test(kubernetes): Improve KubernetesCoreCachingAgent tests Instead of mocking the ProviderCache, use an in-memory cache, and validate that the cache has the expected results after on-demand requests have been processed.
- Loading branch information
1 parent
cd1d2f6
commit bd69f48
Showing
4 changed files
with
468 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.