open-consul/agent/xds
Dan Upton 30775ed54d
proxycfg: remove dependency on cache.UpdateEvent (#13144)
OSS portion of enterprise PR 1857.

This removes (most) references to the `cache.UpdateEvent` type in the
`proxycfg` package.

As we're going to be direct usage of the agent cache with interfaces that
can be satisfied by alternative server-local datasources, it doesn't make
sense to depend on this type everywhere anymore (particularly on the
`state.ch` channel).

We also plan to extract `proxycfg` out of Consul into a shared library in
the future, which would require removing this dependency.

Aside from a fairly rote find-and-replace, the main change is that the
`cache.Cache` and `health.Client` types now accept a callback function
parameter, rather than a `chan<- cache.UpdateEvents`. This allows us to
do the type conversion without running another goroutine.
2022-05-20 15:47:40 +01:00
..
proxysupport
serverlessplugin Support making requests to lambda from connect proxies. 2022-05-05 17:42:30 -04:00
testdata Support making requests to lambda from connect proxies. 2022-05-05 17:42:30 -04:00
xdscommon Support making requests to lambda from connect proxies. 2022-05-05 17:42:30 -04:00
clusters.go
clusters_test.go proxycfg: remove dependency on cache.UpdateEvent (#13144) 2022-05-20 15:47:40 +01:00
config.go
config_test.go
delta.go
delta_test.go add general runstep test helper instead of copying it all over the place (#13013) 2022-05-10 15:25:51 -05:00
endpoints.go
endpoints_test.go
envoy_versioning.go
envoy_versioning_test.go
failover_math.go
failover_math_test.go
golden_test.go
listeners.go Change to use APPEND_FORWARD for terminating gateway 2022-05-04 08:50:59 -07:00
listeners_ingress.go
listeners_test.go proxycfg: remove dependency on cache.UpdateEvent (#13144) 2022-05-20 15:47:40 +01:00
naming.go
net_fallback.go
net_linux.go
protocol_trace.go
rbac.go
rbac_test.go
resources.go
response.go
routes.go
routes_test.go
server.go
server_oss.go
serverless_plugin_oss_test.go Support making requests to lambda from connect proxies. 2022-05-05 17:42:30 -04:00
testing.go
xds.go
xds_protocol_helpers_test.go remove remaining shim runStep functions (#13015) 2022-05-10 16:24:45 -05:00
z_xds_packages.go
z_xds_packages_test.go