fix(xds): correct the configuration of the xds server
diff --git a/pkg/xds/server/v3/components.go b/pkg/xds/server/v3/components.go
index 3ac1859..9d0a5e5 100644
--- a/pkg/xds/server/v3/components.go
+++ b/pkg/xds/server/v3/components.go
@@ -117,7 +117,8 @@
return time.NewTicker(rt.Config().XdsServer.DataplaneStatusFlushInterval.Duration)
},
func() *time.Ticker {
- return nil
+ // Use default settings for now
+ return time.NewTicker(5 * time.Minute)
},
rt.Config().XdsServer.DataplaneStatusFlushInterval.Duration/10,
xds_callbacks.NewDataplaneInsightStore(rt.ResourceManager()),
diff --git a/pkg/xds/sync/componenets.go b/pkg/xds/sync/componenets.go
index cdf79c8..79b09ab 100644
--- a/pkg/xds/sync/componenets.go
+++ b/pkg/xds/sync/componenets.go
@@ -78,7 +78,7 @@
ResManager: rt.ReadOnlyResourceManager(),
}
return NewDataplaneWatchdogFactory(
- 10,
+ config.XdsServer.DataplaneConfigurationRefreshInterval.Duration,
deps,
)
}