diff --git a/pkg/ingress/ingress.go b/pkg/ingress/ingress.go index 50c665e030..36b2de5e26 100644 --- a/pkg/ingress/ingress.go +++ b/pkg/ingress/ingress.go @@ -299,7 +299,7 @@ func (c *ingressController) onUpdate(oldObj, newObj interface{}) { log.Errorf("found ingress resource with bad meta namespace key: %s", err) return } - if !c.controller.isWatchingNamespace(key) { + if !c.controller.namespaceWatching(key) { return } valid := c.isIngressEffective(curr) diff --git a/pkg/ingress/pod.go b/pkg/ingress/pod.go index 7272865c77..6ad9b4da10 100644 --- a/pkg/ingress/pod.go +++ b/pkg/ingress/pod.go @@ -91,7 +91,7 @@ func (c *podController) onUpdate(oldObj, newObj interface{}) { return } - if !c.controller.isWatchingNamespace(curr.Namespace + "/" + curr.Name) { + if !c.controller.namespaceWatching(curr.Namespace + "/" + curr.Name) { return } log.Debugw("pod update event arrived",