Closed as not planned
Description
What would you like to be added:
Can HTTPRoute
support global filters?
apiVersion: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
metadata:
name: myroute
spec:
parentRefs:
- name: mygw
rules:
- matches:
- path:
type: PathPrefix
value: /test1
backendRefs:
- name: test1
port: 8080
- matches:
- path:
type: PathPrefix
value: /test2
backendRefs:
- name: test2
port: 8080
filters: # Generate efficiency for all rules
- type: Cors
cors:
allowOriginRegex:
- '^http(s)?:\/\/localhost:[0-9]{4,5}$'
allowHeaders:
- origin
- content-type
maxAge: 1d
Why this is needed:
For example, I want to add a cors filter under a HTTPRoute
, which will take effect for all rules under the HTTPRoute
.
Metadata
Metadata
Assignees
Labels
Categorizes issue or PR as related to documentation.Categorizes issue or PR as related to a new feature.PRs related to Gateway Enhancement Proposal(GEP)Denotes an issue or PR that has aged beyond stale and will be auto-closed.Indicates an issue or PR lacks a `triage/foo` label and requires one.Higher priority than priority/awaiting-more-evidence.