diff --git a/pkg/routeagent_driver/handlers/healthchecker/healthchecker.go b/pkg/routeagent_driver/handlers/healthchecker/healthchecker.go index 1701605f9..ca56ec18b 100644 --- a/pkg/routeagent_driver/handlers/healthchecker/healthchecker.go +++ b/pkg/routeagent_driver/handlers/healthchecker/healthchecker.go @@ -98,15 +98,7 @@ func (h *controller) Stop() error { } func (h *controller) RemoteEndpointCreated(endpoint *submarinerv1.Endpoint) error { - h.Lock() - defer h.Unlock() - - if !h.config.HealthCheckerEnabled || h.State().IsOnGateway() { - return nil - } - - h.processEndpointCreatedOrUpdated(endpoint) - + h.RemoteEndpointUpdated(endpoint) return nil }