Skip to content

Commit

Permalink
Update validateGRPCFilter filter path
Browse files Browse the repository at this point in the history
  • Loading branch information
ciarams87 committed May 15, 2024
1 parent 3086353 commit a339eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/mode/static/state/graph/grpcroute.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit a339eb5

Please sign in to comment.