diff --git a/cmd/checkapi/allowlist.txt b/cmd/checkapi/allowlist.txt index c5632e7c69e2..4a37b6ba8b34 100644 --- a/cmd/checkapi/allowlist.txt +++ b/cmd/checkapi/allowlist.txt @@ -1,3 +1,2 @@ connector/servicegraphconnector -extension/observer -processor/servicegraphprocessor \ No newline at end of file +processor/servicegraphprocessor diff --git a/extension/observer/endpointswatcher.go b/extension/observer/endpointswatcher.go index 237d602f647a..2654e6cc3efb 100644 --- a/extension/observer/endpointswatcher.go +++ b/extension/observer/endpointswatcher.go @@ -31,7 +31,7 @@ type EndpointsWatcher struct { logger *zap.Logger } -func NewEndpointsWatcher(endpointsLister EndpointsLister, refreshInterval time.Duration, logger *zap.Logger) *EndpointsWatcher { +var NewEndpointsWatcher = func(endpointsLister EndpointsLister, refreshInterval time.Duration, logger *zap.Logger) *EndpointsWatcher { return &EndpointsWatcher{ EndpointsLister: endpointsLister, RefreshInterval: refreshInterval,