open-consul/agent/local
Paul Banks 10af44006a Proxy Config Manager (#4729)
* Proxy Config Manager

This component watches for local state changes on the agent and ensures that each service registered locally with Kind == connect-proxy has it's state being actively populated in the cache.

This serves two purposes:
 1. For the built-in proxy, it ensures that the state needed to accept connections is available in RAM shortly after registration and likely before the proxy actually starts accepting traffic.
 2. For (future - next PR) xDS server and other possible future proxies that require _push_ based config discovery, this provides a mechanism to subscribe and be notified about updates to a proxy instance's config including upstream service discovery results.

* Address review comments

* Better comments; Better delivery of latest snapshot for slow watchers; Embed Config

* Comment typos

* Add upstream Stringer for funsies
2018-10-10 16:55:34 +01:00
..
state.go Proxy Config Manager (#4729) 2018-10-10 16:55:34 +01:00
state_test.go Proxy Config Manager (#4729) 2018-10-10 16:55:34 +01:00
testing.go agent/proxy: manager and basic tests, not great coverage yet coming soon 2018-06-14 09:42:08 -07:00