First part of refactoring the ExtProc used by both the EPP and the BBR#2428
First part of refactoring the ExtProc used by both the EPP and the BBR#2428k8s-ci-robot merged 12 commits intokubernetes-sigs:mainfrom
Conversation
✅ Deploy Preview for gateway-api-inference-extension ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
/test pull-gateway-api-inference-extension-verify-main |
b490418 to
50215fb
Compare
| limitations under the License. | ||
| */ | ||
|
|
||
| package request |
There was a problem hiding this comment.
nit: what do you think about putting this under pkg/common/envoy/...?
the functions here are using envoy structs.
There was a problem hiding this comment.
Done.
I moved most of the code under pkg/common/requests to pkg/common/envoy/requests. I left behind the definition of the header key, which isn't Envoy related.
nirrozenbaum
left a comment
There was a problem hiding this comment.
/lgtm
/approve
Thanks @shmuelk, looks great.
I left one nit about the package name, holding in case you want to handle.
not a blocker (you can unblock is you don't agree).
/hold
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nirrozenbaum, shmuelk The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/hold cancel |
Signed-off-by: Shmuel Kallner <kallner@il.ibm.com>
Signed-off-by: Shmuel Kallner <kallner@il.ibm.com>
Signed-off-by: Shmuel Kallner <kallner@il.ibm.com>
Signed-off-by: Shmuel Kallner <kallner@il.ibm.com>
Signed-off-by: Shmuel Kallner <kallner@il.ibm.com>
Signed-off-by: Shmuel Kallner <kallner@il.ibm.com>
Signed-off-by: Shmuel Kallner <kallner@il.ibm.com>
Signed-off-by: Shmuel Kallner <kallner@il.ibm.com>
Signed-off-by: Shmuel Kallner <kallner@il.ibm.com>
Signed-off-by: Shmuel Kallner <kallner@il.ibm.com>
Signed-off-by: Shmuel Kallner <kallner@il.ibm.com>
69795ff to
4b25c46
Compare
Signed-off-by: Shmuel Kallner <kallner@il.ibm.com>
|
Thanks! /lgtm |
kubernetes-sigs#2428) * Moved base header helpers to pkg/common Signed-off-by: Shmuel Kallner <kallner@il.ibm.com> * BBR to use requestIdKey from pkg/common Signed-off-by: Shmuel Kallner <kallner@il.ibm.com> * Moved default flow ID to pkg/metadata Signed-off-by: Shmuel Kallner <kallner@il.ibm.com> * Updates due to move of requestId header key Signed-off-by: Shmuel Kallner <kallner@il.ibm.com> * Fixed copyright text Signed-off-by: Shmuel Kallner <kallner@il.ibm.com> * Increased timeout, times out if Git is slow Signed-off-by: Shmuel Kallner <kallner@il.ibm.com> * Reverted change to ready timeout Signed-off-by: Shmuel Kallner <kallner@il.ibm.com> * Increased metrics curl timeout for slower systems Signed-off-by: Shmuel Kallner <kallner@il.ibm.com> * Updated new test with updated header key location Signed-off-by: Shmuel Kallner <kallner@il.ibm.com> * Moved envoy related code under new common/envoy package Signed-off-by: Shmuel Kallner <kallner@il.ibm.com> * Changes due to package refactoring Signed-off-by: Shmuel Kallner <kallner@il.ibm.com> * Changes due to package refactoring Signed-off-by: Shmuel Kallner <kallner@il.ibm.com> --------- Signed-off-by: Shmuel Kallner <kallner@il.ibm.com>
kubernetes-sigs/gateway-api-inference-extension#2428) * Moved base header helpers to pkg/common Signed-off-by: Shmuel Kallner <kallner@il.ibm.com> * BBR to use requestIdKey from pkg/common Signed-off-by: Shmuel Kallner <kallner@il.ibm.com> * Moved default flow ID to pkg/metadata Signed-off-by: Shmuel Kallner <kallner@il.ibm.com> * Updates due to move of requestId header key Signed-off-by: Shmuel Kallner <kallner@il.ibm.com> * Fixed copyright text Signed-off-by: Shmuel Kallner <kallner@il.ibm.com> * Increased timeout, times out if Git is slow Signed-off-by: Shmuel Kallner <kallner@il.ibm.com> * Reverted change to ready timeout Signed-off-by: Shmuel Kallner <kallner@il.ibm.com> * Increased metrics curl timeout for slower systems Signed-off-by: Shmuel Kallner <kallner@il.ibm.com> * Updated new test with updated header key location Signed-off-by: Shmuel Kallner <kallner@il.ibm.com> * Moved envoy related code under new common/envoy package Signed-off-by: Shmuel Kallner <kallner@il.ibm.com> * Changes due to package refactoring Signed-off-by: Shmuel Kallner <kallner@il.ibm.com> * Changes due to package refactoring Signed-off-by: Shmuel Kallner <kallner@il.ibm.com> --------- Signed-off-by: Shmuel Kallner <kallner@il.ibm.com>
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Both the Endpoint Picker (EPP) and the Body Based Router (BBR) are Envoy ExtProc filters. There is much code that has been copy and pasted from one to the other.
This PR is the first in a series of PRs that will refactor out the common Ext Proc processing code into a set of reusable packages. This is being done to try and keep the PRs somewhat smaller.
In particular this PR:
1. Moves the basic header handling code to a common package
2. Moves the request id and default flow id constants to common packages
3. Updates other parts of the code base due to the above changes
Which issue(s) this PR fixes:
Fixes #2427
Ref: #2411
Does this PR introduce a user-facing change?: