Skip to content

Commit

Permalink
retry on k8s object not found
Browse files Browse the repository at this point in the history
  • Loading branch information
Revolyssup committed Jan 23, 2024
1 parent 2bea325 commit 95df121
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions pkg/providers/apisix/apisix_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,16 +473,6 @@ func (c *apisixRouteController) handleSyncErr(obj interface{}, errOrigin error)
c.MetricsCollector.IncrSyncOperation("route", "success")
return
}
ev := obj.(*types.Event)
event := ev.Object.(kube.ApisixRouteEvent)
if k8serrors.IsNotFound(errOrigin) && ev.Type != types.EventDelete {
log.Infow("sync ApisixRoute but not found, ignore",
zap.String("event_type", ev.Type.String()),
zap.String("ApisixRoute", event.Key),
)
c.workqueue.Forget(obj)
return
}
log.Warnw("sync ApisixRoute failed, will retry",
zap.Any("object", obj),
zap.Error(errOrigin),
Expand Down

0 comments on commit 95df121

Please sign in to comment.