From a339eb52d0f0ffa0a30385a9649fdb787b51d8b7 Mon Sep 17 00:00:00 2001 From: Ciara Stacke Date: Wed, 15 May 2024 09:48:29 +0100 Subject: [PATCH] Update validateGRPCFilter filter path --- internal/mode/static/state/graph/grpcroute.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/mode/static/state/graph/grpcroute.go b/internal/mode/static/state/graph/grpcroute.go index 477b594a23..d50001422f 100644 --- a/internal/mode/static/state/graph/grpcroute.go +++ b/internal/mode/static/state/graph/grpcroute.go @@ -248,7 +248,7 @@ func validateGRPCFilter( switch filter.Type { case v1alpha2.GRPCRouteFilterRequestHeaderModifier: - return validateFilterHeaderModifier(validator, filter.RequestHeaderModifier, filterPath) + return validateFilterHeaderModifier(validator, filter.RequestHeaderModifier, filterPath.Child(string(filter.Type))) default: valErr := field.NotSupported( filterPath.Child("type"),