Closed jspdown closed 4 years ago
This PR adds support for header-based filtering on TrafficTargets. As described in the specification, an HTTPRouteGroup can define a set of headers that must match to pass through.
https://github.com/servicemeshinterface/smi-spec/blob/master/apis/traffic-specs/v1alpha3/traffic-specs.md#http-header-filters
kind: HTTPRouteGroup metadata: name: the-routes namespace: default spec: matches: - name: android-insiders headers: - user-agent: ".*Android.*" - cookie: "^(.*?;)?(type=insider)(;.*)?$"
make test
make test-integration
What does this PR do?
This PR adds support for header-based filtering on TrafficTargets. As described in the specification, an HTTPRouteGroup can define a set of headers that must match to pass through.
https://github.com/servicemeshinterface/smi-spec/blob/master/apis/traffic-specs/v1alpha3/traffic-specs.md#http-header-filters
How to test it
make test
make test-integration