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 fgksgf committed Apr 7, 2022
1 parent e464470 commit d90768d
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 @@ -307,6 +307,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 d90768d

Please sign in to comment.