bigfish02 opened a new pull request, #1982:
URL: https://github.com/apache/apisix-ingress-controller/pull/1982

   <!-- Please answer these questions before submitting a pull request -->
   
   ### Type of change:
   
   
   - [x ] Bugfix
   - [ ] New feature provided
   - [ ] Improve performance
   - [ ] Backport patches
   - [ ] Documentation
   - [ ] Refactor
   - [ ] Chore
   - [ ] CI/CD or Tests
   
   ### What this PR does / why we need it:
   
   I deploy apisix with namespace_selector option. If I apply apisixroute in a 
namespace, and then label with that namespace. It does not work.
   
   Example:
   
   1. deploy apisix with namespace_selector option
   ```
   kubernetes:
     namespace_selector:
     - apisix=true
    ```
   
   2. deploy apisixroute
   ```
   kubectl create ns test
   kubectl apply -f  -  <<EOF
   apiVersion: apisix.apache.org/v2
   kind: ApisixRoute
   metadata:
     name: nginx
     namespace: test
   spec:
     http:
     - backends:
       - serviceName: nginx
         servicePort: 80
       match:
         hosts:
         - xx.com
         paths:
         - /*
       name: nginx
   EOF
   kubectl label ns test apisix=true
   ```
   apisix-ingress-controller does not sync that apisixroute after I label that 
namespace.


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