chzhuo opened a new issue #741:
URL: https://github.com/apache/apisix-ingress-controller/issues/741


   ### The newly created namespace will not be watched  when the controller has 
started and the `NamespaceSelector` is empty
   
   ### Environment
   
   * controller: 1.3.0
   
   ### Minimal test code / Steps to reproduce the issue
   1. start controller
   2. create a new namespace
   3. namespace will not store to `watchingNamespace`
   
   ### The reason of the bug
   
![image](https://user-images.githubusercontent.com/10919124/140680435-710bf50e-b7af-4027-a871-e44fac82a12b.png)
   The method `IsSubsetOf` return `false` when `watchingLabels` is empty
   
   
![image](https://user-images.githubusercontent.com/10919124/140680620-65c6386e-23d6-4045-9801-0dfd67edb17e.png)
   
   I think should return `true` when the `s` is empty
   
   


-- 
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