bzp2010 commented on code in PR #2546:
URL: 
https://github.com/apache/apisix-ingress-controller/pull/2546#discussion_r2332799315


##########
internal/adc/translator/httproute.go:
##########
@@ -508,11 +531,22 @@ func (t *Translator) TranslateHTTPRoute(tctx 
*provider.TranslateContext, httpRou
                } else if len(upstreams) == 1 {
                        // Single backend - use directly as service upstream
                        service.Upstream = upstreams[0]
+                       // remove the id and name of the service.upstream, adc 
schema does not need id and name for it
+                       service.Upstream.ID = ""

Review Comment:
   I confirmed that the inline upstream does not accept the id field, the 
backend always generates and populates it automatically.



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