Skip to content

Commit

Permalink
fix(kuma-cp): put metadata xds callbacks before sync (backport of #7230
Browse files Browse the repository at this point in the history
…) (#7245)

fix(kuma-cp): put metadata xds callbacks before sync (#7230)

fix(kuma-cp): change XDS callbacks order

Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Co-authored-by: Ilya Lobkov <ilya.lobkov@konghq.com>
  • Loading branch information
kumahq[bot] and lobkovilya authored Jul 13, 2023
1 parent 4cc221f commit 572fe84
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 572fe84

Please sign in to comment.