mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-21 04:57:18 +02:00
controlplane: save configuration events to databroker (#2153)
* envoy: save events to databroker * controlplane: add tests for envoy configuration events * format imports
This commit is contained in:
parent
d32b8a4d8a
commit
0adbf4f24c
13 changed files with 1067 additions and 618 deletions
|
@ -190,17 +190,17 @@ func (src *ConfigSource) runUpdater(cfg *config.Config) {
|
|||
src.cancel = nil
|
||||
}
|
||||
|
||||
cc, err := grpc.NewGRPCClientConn(connectionOptions)
|
||||
ctx := context.Background()
|
||||
ctx, src.cancel = context.WithCancel(ctx)
|
||||
|
||||
cc, err := grpc.NewGRPCClientConn(ctx, connectionOptions)
|
||||
if err != nil {
|
||||
log.Error(context.TODO()).Err(err).Msg("databroker: failed to create gRPC connection to data broker")
|
||||
log.Error(ctx).Err(err).Msg("databroker: failed to create gRPC connection to data broker")
|
||||
return
|
||||
}
|
||||
|
||||
client := databroker.NewDataBrokerServiceClient(cc)
|
||||
|
||||
ctx := context.Background()
|
||||
ctx, src.cancel = context.WithCancel(ctx)
|
||||
|
||||
syncer := databroker.NewSyncer("databroker", &syncerHandler{
|
||||
client: client,
|
||||
src: src,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue