cai200631 opened a new issue, #1231:
URL: https://github.com/apache/apisix-ingress-controller/issues/1231

   Accordding to the documentation,  if I config multi http[].match.exprs,   
results should be matched (oneof) to use this route rule.  but according to my 
test,  all rule should be matched , then the route effective;
   
   
   my apisixroute spec is as follows: 
   
   spec:
     http:
       - backends:
           - serviceName: svc-arch-fe-general-test-service
             servicePort: 80
         match:
           exprs:
             - op: Equal
               subject:
                 name: qingzhou_gray_test
                 scope: Cookie
               value: test-hangzhou
             - op: Equal
               subject:
                 name: front-traffic-env
                 scope: Header
               value: test-hangzhou
           hosts:
             - test-demo.baijia.com
           paths:
             - /*
         name: e153996aa8ea9af43841
   
   
   test case as follows:
   only add header and cookie, I can traffic to test-hangzhou;
   
   
![image](https://user-images.githubusercontent.com/9104913/183369878-a03cc4c8-85dd-4371-a2a0-00eed31196c8.png)
   
   


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