Skip to content

Commit

Permalink
fix(kuma-cp): put metadata xds callbacks before sync (#7230)
Browse files Browse the repository at this point in the history
fix(kuma-cp): change XDS callbacks order

Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
  • Loading branch information
lobkovilya authored and kumahq[bot] committed Jul 13, 2023
1 parent 202c17b commit 360aef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/xds/server/v3/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ func RegisterXDS(
util_xds_v3.NewControlPlaneIdCallbacks(rt.GetInstanceId()),
util_xds_v3.AdaptCallbacks(statsCallbacks),
util_xds_v3.AdaptCallbacks(authCallbacks),
util_xds_v3.AdaptCallbacks(xds_callbacks.DataplaneCallbacksToXdsCallbacks(xds_callbacks.NewDataplaneSyncTracker(watchdogFactory.New))),
util_xds_v3.AdaptCallbacks(xds_callbacks.DataplaneCallbacksToXdsCallbacks(metadataTracker)),
util_xds_v3.AdaptCallbacks(xds_callbacks.DataplaneCallbacksToXdsCallbacks(xds_callbacks.NewDataplaneSyncTracker(watchdogFactory.New))),
util_xds_v3.AdaptCallbacks(xds_callbacks.DataplaneCallbacksToXdsCallbacks(
xds_callbacks.NewDataplaneLifecycle(rt.AppContext(), rt.ResourceManager(), authenticator, rt.Config().XdsServer.DataplaneDeregistrationDelay.Duration, rt.GetInstanceId())),
),
Expand Down

0 comments on commit 360aef7

Please sign in to comment.