AlinsRan commented on code in PR #1311:
URL: 
https://github.com/apache/apisix-ingress-controller/pull/1311#discussion_r961499659


##########
pkg/providers/ingress/ingress.go:
##########
@@ -429,6 +429,15 @@ func (c *ingressController) ResourceSync() {
                        continue
                }
                ing := kube.MustNewIngress(obj)
+               valid := c.isIngressEffective(ing)
+               if valid {
+                       log.Debugw("ingress add event arrived",
+                               zap.Any("object", obj),
+                       )
+               } else {
+                       // resource sync do not care about the ingress class 
mismatch
+                       return
+               }

Review Comment:
   ```suggestion
                if !c.isIngressEffective(ing) {
                        return
                }
                log.Debugw("ingress add event arrived",
                        zap.Any("object", obj),
                )
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to