diff --git a/pkg/service/endpoints_controller.go b/pkg/service/endpoints_controller.go index 48810c175bb..b714faf28f3 100644 --- a/pkg/service/endpoints_controller.go +++ b/pkg/service/endpoints_controller.go @@ -78,7 +78,7 @@ func (e *EndpointController) SyncServiceEndpoints() error { currentEndpoints, err := e.client.GetEndpoints(nsCtx, service.ID) if err != nil { // TODO this is brittle as all get out, refactor the client libraries to return a structured error. - if strings.Contains(err.Error(), "(404)") { + if strings.Contains(err.Error(), "404") { currentEndpoints = &api.Endpoints{ JSONBase: api.JSONBase{ ID: service.ID,