This is an automated email from the ASF dual-hosted git repository.
ronething pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-ingress-controller.git
The following commit(s) were added to refs/heads/master by this push:
new c48e9b3f fix: ensure upstream scheme is set only if not already
defined in HTTP route translation (#2691)
c48e9b3f is described below
commit c48e9b3fb8d269b04b440c6fc5ed6880c05456f3
Author: Timmy <[email protected]>
AuthorDate: Thu Jan 22 09:38:48 2026 +0800
fix: ensure upstream scheme is set only if not already defined in HTTP
route translation (#2691)
---
internal/adc/translator/httproute.go | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/internal/adc/translator/httproute.go
b/internal/adc/translator/httproute.go
index 12b5c6ff..b16192a7 100644
--- a/internal/adc/translator/httproute.go
+++ b/internal/adc/translator/httproute.go
@@ -571,7 +571,9 @@ func (t *Translator) TranslateHTTPRoute(tctx
*provider.TranslateContext, httpRou
t.AttachBackendTrafficPolicyToUpstream(backend.BackendRef,
tctx.BackendTrafficPolicies, upstream)
upstream.Nodes = upNodes
- upstream.Scheme = appProtocolToUpstreamScheme(protocol)
+ if upstream.Scheme == "" {
+ upstream.Scheme =
appProtocolToUpstreamScheme(protocol)
+ }
var (
kind string
port int32