Skip to content

Commit f66c962

Browse files
committed
connect: simplify the compiled discovery chain data structures
This should make them better for sending over RPC or the API. Instead of a chain implemented explicitly like a linked list (nodes holding pointers to other nodes) instead switch to a flat map of named nodes with nodes linking other other nodes by name. The shipped structure is just a map and a string to indicate which key to start from. Other changes: * inline the compiler option InferDefaults as true * introduce compiled target config to avoid needing to send back additional maps of Resolvers; future target-specific compiled state can go here * move compiled MeshGateway out of the Resolver and into the TargetConfig where it makes more sense.
1 parent e888cf7 commit f66c962

File tree

10 files changed

+1063
-1045
lines changed

10 files changed

+1063
-1045
lines changed

agent/consul/config_endpoint.go

-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,6 @@ func (c *ConfigEntry) ReadDiscoveryChain(args *structs.DiscoveryChainRequest, re
361361
OverrideMeshGateway: args.OverrideMeshGateway,
362362
OverrideProtocol: args.OverrideProtocol,
363363
OverrideConnectTimeout: args.OverrideConnectTimeout,
364-
InferDefaults: true,
365364
Entries: entries,
366365
})
367366
if err != nil {

0 commit comments

Comments
 (0)