Skip to content

Commit

Permalink
chore: revert isWatchingNamespace to namespaceWatching
Browse files Browse the repository at this point in the history
Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
  • Loading branch information
tao12345666333 committed Apr 22, 2022
1 parent e259826 commit d0bc591
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/ingress/ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pkg/ingress/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d0bc591

Please sign in to comment.