diff --git a/pkg/controllers/ingress/ingress.go b/pkg/controllers/ingress/ingress.go index e683e8bc..3d2f4bd5 100644 --- a/pkg/controllers/ingress/ingress.go +++ b/pkg/controllers/ingress/ingress.go @@ -130,11 +130,16 @@ func (c *Controller) ingressAdd(obj interface{}) { } func (c *Controller) ingressUpdate(old, new interface{}) { + oldIngress := old.(*networkingv1.Ingress) + newIngress := new.(*networkingv1.Ingress) + + // Ignore regular resyncs that did not come from an actual update. + if oldIngress.ResourceVersion == newIngress.ResourceVersion { + return + } if c.metricsCollector != nil { c.metricsCollector.IncrementIngressUpdateOperation() } - oldIngress := old.(*networkingv1.Ingress) - newIngress := new.(*networkingv1.Ingress) klog.V(4).InfoS("Updating ingress", "ingress", klog.KObj(oldIngress)) c.enqueueIngress(newIngress)