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

   <!-- Please answer these questions before submitting a pull request -->
   
   ### Type of change:
   
   <!-- Please delete options that are not relevant. -->
   
   <!-- Select all the options from below that matches the type your PR best -->
   
   - [x] Bugfix
   - [ ] New feature provided
   - [ ] Improve performance
   - [ ] Backport patches
   - [ ] Documentation
   - [ ] Refactor
   - [ ] Chore
   - [ ] CI/CD or Tests
   
   ### What this PR does / why we need it:
   
   <!--- Why is this change required? What problem does it solve? -->
   <!--- If it fixes an open issue, please link to the issue here. -->
   
   When there are multiple services with the type of "external name," issues 
may arise. For example:
   
   ```
   apiVersion: v1
   kind: Service
   metadata:
     name: httpbin-external-domain
   spec:
     type: ExternalName
     externalName: httpbin.org
   ---
   apiVersion: v1
   kind: Service
   metadata:
     name: mockapi7-external-domain
   spec:
     type: ExternalName
     externalName: mock.api7.ai
   ---
   apiVersion: apisix.apache.org/v1alpha1
   kind: BackendTrafficPolicy
   metadata:
     name: passhost-node
   spec:
     targetRefs:
     - name: httpbin-external-domain
       kind: Service
       group: ""
     - name: mockapi7-external-domain
       kind: Service
       group: ""
     passHost: node
     scheme: https
   ---
   apiVersion: gateway.networking.k8s.io/v1
   kind: HTTPRoute
   metadata:
     name: lb-route
   spec:
     parentRefs:
     - name: apisix
     rules:
     - matches:
       - path:
           type: Exact
           value: /headers
       backendRefs:
       - name: httpbin-external-domain
         port: 443
         weight: 1
       - name: mockapi7-external-domain
         port: 443
         weight: 1
   
   ```
   
   The incorrect configuration generated, and the nodes list only has 
httpbin.org: 
   
   ```
     "upstream": {
           "type": "roundrobin",
           "scheme": "https",
           "pass_host": "node",
           "nodes": [
             {
               "port": 443,
               "host": "httpbin.org",
               "weight": 1
             }
           ],
           "labels": {
             "managed-by": "apisix-ingress-controller"
           }
         },
   ```
   
   ### Pre-submission checklist:
   
   <!--
   Please follow the requirements:
   1. Use Draft if the PR is not ready to be reviewed
   2. Test is required for the feat/fix PR, unless you have a good reason
   3. Doc is required for the feat PR
   4. Use a new commit to resolve review instead of `push -f`
   5. Use "request review" to notify the reviewer once you have resolved the 
review
   -->
   
   - [ ] Did you explain what problem does this PR solve? Or what new features 
have been added?
   - [ ] Have you added corresponding test cases?
   - [ ] Have you modified the corresponding document?
   - [ ] Is this PR backward compatible? **If it is not backward compatible, 
please discuss on the [mailing 
list](https://github.com/apache/apisix-ingress-controller#community) first**
   


-- 
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: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to