mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-10 15:47:36 +02:00
grpc: send client traffic through envoy (#2469)
* wip * wip * handle wildcards in override name * remove wait for ready, add comment about sync, force initial sync complete in test * address comments
This commit is contained in:
parent
87c3c675d2
commit
bbec2cae9f
26 changed files with 391 additions and 480 deletions
|
@ -25,6 +25,7 @@ func TestConfigSource(t *testing.T) {
|
|||
return
|
||||
}
|
||||
defer func() { _ = li.Close() }()
|
||||
_, outboundPort, _ := net.SplitHostPort(li.Addr().String())
|
||||
|
||||
dataBrokerServer := New()
|
||||
srv := grpc.NewServer()
|
||||
|
@ -45,7 +46,8 @@ func TestConfigSource(t *testing.T) {
|
|||
})
|
||||
|
||||
baseSource := config.NewStaticSource(&config.Config{
|
||||
Options: base,
|
||||
OutboundPort: outboundPort,
|
||||
Options: base,
|
||||
})
|
||||
src := NewConfigSource(ctx, baseSource, func(_ context.Context, cfg *config.Config) {
|
||||
cfgs <- cfg
|
||||
|
@ -86,6 +88,7 @@ func TestConfigSource(t *testing.T) {
|
|||
}
|
||||
|
||||
baseSource.SetConfig(ctx, &config.Config{
|
||||
Options: base,
|
||||
OutboundPort: outboundPort,
|
||||
Options: base,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue