This is an automated email from the ASF dual-hosted git repository.
alinsran 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 a368e287 fix(conformance-test): HTTPRouteQueryParamMatching (#2598)
a368e287 is described below
commit a368e2876cdfa80e5ffda3565e28cda53e28f370
Author: AlinsRan <[email protected]>
AuthorDate: Sat Oct 11 16:18:01 2025 +0800
fix(conformance-test): HTTPRouteQueryParamMatching (#2598)
---
Makefile | 2 +-
internal/adc/translator/httproute.go | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index a5f0606b..adffa3b1 100644
--- a/Makefile
+++ b/Makefile
@@ -52,7 +52,7 @@ GO_LDFLAGS ?= "-X=$(VERSYM)=$(VERSION)
-X=$(GITSHASYM)=$(GITSHA) -X=$(BUILDOSSYM
# gateway-api
GATEAY_API_VERSION ?= v1.3.0
##
https://github.com/kubernetes-sigs/gateway-api/blob/v1.3.0/pkg/features/httproute.go
-SUPPORTED_EXTENDED_FEATURES =
"HTTPRouteDestinationPortMatching,HTTPRouteMethodMatching,HTTPRoutePortRedirect,HTTPRouteRequestMirror,HTTPRouteSchemeRedirect,GatewayAddressEmpty,HTTPRouteResponseHeaderModification,GatewayPort8080,HTTPRouteHostRewrite"
+SUPPORTED_EXTENDED_FEATURES =
"HTTPRouteDestinationPortMatching,HTTPRouteMethodMatching,HTTPRoutePortRedirect,HTTPRouteRequestMirror,HTTPRouteSchemeRedirect,GatewayAddressEmpty,HTTPRouteResponseHeaderModification,GatewayPort8080,HTTPRouteHostRewrite,HTTPRouteQueryParamMatching"
CONFORMANCE_TEST_REPORT_OUTPUT ?=
$(DIR)/apisix-ingress-controller-conformance-report.yaml
##
https://github.com/kubernetes-sigs/gateway-api/blob/v1.3.0/conformance/utils/suite/profiles.go
CONFORMANCE_PROFILES ?= GATEWAY-HTTP,GATEWAY-GRPC
diff --git a/internal/adc/translator/httproute.go
b/internal/adc/translator/httproute.go
index c529024d..3fc1db98 100644
--- a/internal/adc/translator/httproute.go
+++ b/internal/adc/translator/httproute.go
@@ -734,7 +734,7 @@ func (t *Translator) translateGatewayHTTPRouteMatch(match
*gatewayv1.HTTPRouteMa
for _, query := range match.QueryParams {
var this []adctypes.StringOrSlice
this = append(this, adctypes.StringOrSlice{
- StrVal: "arg_" +
strings.ToLower(fmt.Sprintf("%v", query.Name)),
+ StrVal: "arg_" + fmt.Sprintf("%v", query.Name),
})
queryType := gatewayv1.QueryParamMatchExact
@@ -773,7 +773,6 @@ func (t *Translator) translateGatewayHTTPRouteMatch(match
*gatewayv1.HTTPRouteMa
}
func HeaderMatchToVars(matchType, name, value string)
([]adctypes.StringOrSlice, error) {
- name = strings.ToLower(name)
name = strings.ReplaceAll(name, "-", "_")
var this []adctypes.StringOrSlice