generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 599
Closed as not planned
Labels
kind/documentationCategorizes issue or PR as related to documentation.Categorizes issue or PR as related to documentation.kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.kind/gepPRs related to Gateway Enhancement Proposal(GEP)PRs related to Gateway Enhancement Proposal(GEP)lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.Indicates an issue or PR lacks a `triage/foo` label and requires one.priority/backlogHigher priority than priority/awaiting-more-evidence.Higher priority than priority/awaiting-more-evidence.
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
kind/documentationCategorizes issue or PR as related to documentation.Categorizes issue or PR as related to documentation.kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.kind/gepPRs related to Gateway Enhancement Proposal(GEP)PRs related to Gateway Enhancement Proposal(GEP)lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.Indicates an issue or PR lacks a `triage/foo` label and requires one.priority/backlogHigher priority than priority/awaiting-more-evidence.Higher priority than priority/awaiting-more-evidence.