Skip to content

Commit 1df4062

Browse files
AlinsRanCopilot
andcommitted
fix: preserve HTTPRoute upstream scheme from backend ref
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 15b2f39 commit 1df4062

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

internal/adc/translator/httproute.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,9 @@ func (t *Translator) TranslateHTTPRoute(tctx *provider.TranslateContext, httpRou
572572

573573
t.AttachBackendTrafficPolicyToUpstream(backend.BackendRef, tctx.BackendTrafficPolicies, upstream)
574574
upstream.Nodes = upNodes
575-
upstream.Scheme = appProtocolToUpstreamScheme(protocol)
575+
if upstream.Scheme == "" {
576+
upstream.Scheme = appProtocolToUpstreamScheme(protocol)
577+
}
576578
var (
577579
kind string
578580
port int32

0 commit comments

Comments
 (0)