forked from openservicemesh/osm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/configurator: introducing pubsub for config updates (openservicem…
…esh#2050) * pkg/configurator: introducing pubsub for config updates This commit introduces a configuration interface to subscribe to announcement types for configurator. This interfaces provides a simple way for multiple remote packages/modules/goroutines to subscribe to events of their interest. The reasoning is to prioritize decoupling between modules so much they can handle their own logic, as opposed to having a single thread/goroutine handle all configuration updates, thus triggering remote functions on the appropriate modules upon config changes. The GetAnnouncementChannel() interface has been removed, and instead a middleman routine in configurator has been spawned, which will be the one to multiplex announcement channel updates through the publish interface. Some cleanup has happened for DebugServer, which was consuming the cfg channel interface on osm-controller. Has been moved to its relevant package and is already working under pub/sub model. * Update pkg/configurator/types.go * Apply suggestions from code review Co-authored-by: Shashank Ram <shashank08@gmail.com> Co-authored-by: Shashank Ram <shashank08@gmail.com>
- Loading branch information
1 parent
f362b18
commit 9ea8a6f
Showing
11 changed files
with
207 additions
and
243 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
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.