-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
e2e: ensures the route recalculated #135
Conversation
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
mutation_rules: | ||
allow_all_routing: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was unneeded and makes the configuration diff between EG and raw envoy here smaller
api/v1alpha1/api.go
Outdated
@@ -61,7 +61,7 @@ type AIGatewayRouteSpec struct { | |||
// modifications to achieve the necessary jobs, notably inserting the AI Gateway filter responsible for | |||
// the transformation of the request and response, etc. | |||
// | |||
// In the matching conditions in the AIGatewayRouteRule, `x-envoy-ai-gateway-model` header is available | |||
// In the matching conditions in the AIGatewayRouteRule, `x-eaig-model` header is available |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tbh, eaig
looks like a typo unfortunately, suggest x-ai-eg-model
which reads better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's stick to ai-eg-* from now!
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
Previously, internally `x-envoy-ai-gateway-selected-backend` was used for routing. However, it has some conflicts with the EG default setting named `suprressEnvoyHeaders: true` and that caused the route recalculation ignored. This fixes it. In general, we shouldn't use the Envoy internal headers x-envoy-* for headers we generate in this project. Thanks @yuzisun for finding this out. --------- Signed-off-by: Takeshi Yoneda <[email protected]> Signed-off-by: Aaron Choo <[email protected]>
Previously, internally
x-envoy-ai-gateway-selected-backend
was used for routing. However, it has some conflicts with the
EG default setting named
suprressEnvoyHeaders: true
andthat caused the route recalculation ignored. This fixes it.
In general, we shouldn't use the Envoy internal headers
x-envoy-* for headers we generate in this project.
Thanks @yuzisun for finding this out.