xiangtianyu commented on issue #1267:
URL:
https://github.com/apache/apisix-ingress-controller/issues/1267#issuecomment-1225439920
> You should use `apisix-ingress-controller` 1.5.0-rc1 verson. This v2
version supports the introduction of. Those PR are dependent.
line 326 is "zap.String("ApisixUpstream", event.Object.(string)),"
```
func (c *apisixUpstreamController) handleSyncErr(obj interface{}, err error)
{
if err == nil {
c.workqueue.Forget(obj)
c.controller.MetricsCollector.IncrSyncOperation("upstream",
"success")
return
}
event := obj.(*types.Event)
if k8serrors.IsNotFound(err) && event.Type != types.EventDelete {
log.Infow("sync ApisixUpstream but not found, ignore",
zap.String("event_type", event.Type.String()),
zap.String("ApisixUpstream", event.Object.(string)),
)
c.workqueue.Forget(event)
return
}
log.Warnw("sync ApisixUpstream failed, will retry",
zap.Any("object", obj),
zap.Error(err),
)
c.workqueue.AddRateLimited(obj)
c.controller.MetricsCollector.IncrSyncOperation("upstream", "failure")
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]