This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
endpoint/kube: Cleanup and move remaining caches to kubecontroller (#…
…2191) * endpoint/kube: Move caches to kubecontroller layer This commit removes a repeated cache (pods) and moves the endpoint cache to kubecontroller in an attempt to unify code and the interfaces that handles kubernetes objects. This commit also removes the mocks on provider tests that were trying to dynamically simulate kubecontroller logic (which is highly error-prone), in favour of using the real kubecontroller object instead. Specific information for each category has been added on their respective ginkgo `Defines`. - Pod cache from provider has been removed. Kubecontroller held one all along already. - Endpoint cache has been moved from provider/kube to Kubecontroller. - API to get endpoints for a service was added (GetEndpoints). - Removed the Announcement channel for provider's interface and implementation, subscription/announcement capabilities are still available through pubsub. Tests: - Moved the tests that were using dynamic mocks to use a real kubecontroller object instead. - Added some more synchronization as there were still some races lurking around.
- Loading branch information
Showing
10 changed files
with
192 additions
and
319 deletions.
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.