gateway api v1.6.2 standard

GRPCRoute.spec.rules[].matches[]

GRPCRouteMatch defines the predicate used to match requests to a given action. Multiple match types are ANDed together, i.e. the match will evaluate to true only if all conditions are satisfied. For example, the match below will match a gRPC request only if its service is `foo` AND it contains the `version: v1` header: ``` matches: - method: type: Exact service: "foo" - headers: name: "version" value "v1" ```

2 fields
GRPCRoute.spec.rules[].matches[] fields and descriptions
Field / TypeDescription
object[]

Headers specifies gRPC request header matchers. Multiple match values are ANDed together, meaning, a request MUST match all the specified headers to select the route.

  • maxItems: 16
  • x-kubernetes-list-map-keys: ["name"]
  • x-kubernetes-list-type: "map"
object

Method specifies a gRPC request service/method matcher. If this field is not specified, all services and methods will match.

  • x-kubernetes-validations: [{"message":"One or both of 'service' or 'method' must be specified","rule":"has(self.type) ? has(self.service) || has(self.method) : true"},{"message":"service must only contain valid characters (matching ^(?i)\\.?[a-z_][a-z_0-9]*(\\.[a-z_][a-z_0-9]*)*$)","rule":"(!has(self.type) || self.type == 'Exact') \u0026\u0026 has(self.service) ? self.service.matches(r\"\"\"^(?i)\\.?[a-z_][a-z_0-9]*(\\.[a-z_][a-z_0-9]*)*$\"\"\"): true"},{"message":"method must only contain valid characters (matching ^[A-Za-z_][A-Za-z_0-9]*$)","rule":"(!has(self.type) || self.type == 'Exact') \u0026\u0026 has(self.method) ? self.method.matches(r\"\"\"^[A-Za-z_][A-Za-z_0-9]*$\"\"\"): true"}]