Skip to content

Commit

Permalink
fix: ingress update event handler not filter by watching namespaces (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
nic-6443 authored and tao12345666333 committed Apr 22, 2022
1 parent 46da0e2 commit 4d087b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/ingress/ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,9 @@ 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) {
return
}
valid := c.isIngressEffective(curr)
if valid {
log.Debugw("ingress update event arrived",
Expand Down

0 comments on commit 4d087b3

Please sign in to comment.