-
Notifications
You must be signed in to change notification settings - Fork 631
trafficpolicy clean up: remove ai policy #12901
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
Conversation
|
Very much in favor of this. Just shoot me a ping once this is ready for review. |
86c8e43 to
598f2cf
Compare
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.
Pull Request Overview
This PR removes AI policy functionality from the TrafficPolicy resource as part of a breaking change. The envoy-based AI gateway is being deprecated and removed.
Key changes:
- Removed AI policy field and related configuration from TrafficPolicy CRD
- Cleaned up AI-specific filter names and processing logic from traffic policy plugin
- Removed AI extproc filter disabling logic from backend plugin
- Renamed
Templatetype toInjaTemplatefor clarity
Reviewed Changes
Copilot reviewed 45 out of 45 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| internal/kgateway/wellknown/constants.go | Removed AI-specific filter name constants |
| internal/kgateway/extensions2/plugins/trafficpolicy/traffic_policy_plugin.go | Removed AI policy processing logic and IR handling |
| internal/kgateway/extensions2/plugins/trafficpolicy/merge.go | Removed AI policy merge function |
| internal/kgateway/extensions2/plugins/trafficpolicy/constructor.go | Removed AI policy IR construction |
| internal/kgateway/extensions2/plugins/trafficpolicy/ai_policy.go | Deleted entire AI policy implementation file |
| internal/kgateway/extensions2/plugins/trafficpolicy/ai_policy_test.go | Deleted entire AI policy test file |
| internal/kgateway/extensions2/plugins/backend/plugin.go | Removed AI extproc filter disabling logic |
| install/helm/kgateway-crds/templates/gateway.kgateway.dev_trafficpolicies.yaml | Removed AI field from CRD schema and updated validation rules |
| api/v1alpha1/traffic_policy_types.go | Removed AI field from TrafficPolicySpec and renamed Template to InjaTemplate |
| api/v1alpha1/zz_generated.deepcopy.go | Updated generated deepcopy code to reflect type rename |
| Multiple test output YAML files | Removed AI extproc filter config entries from expected outputs |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
internal/kgateway/setup/testdata/standard/auto-host-plus-host-rewrite-out.yaml
Show resolved
Hide resolved
598f2cf to
7a1ba38
Compare
Signed-off-by: omar <[email protected]>
7a1ba38 to
719deed
Compare
npolshakova
left a comment
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.

Description
Remove deprecated AI policy from TrafficPolicy.
Change Type
/kind breaking_change
Changelog
Additional Notes