Skip to content

Conversation

@puertomontt
Copy link
Contributor

@puertomontt puertomontt commented Nov 17, 2025

Description

Remove deprecated AI policy from TrafficPolicy.

Change Type

/kind breaking_change

Changelog

Remove AI policy from TrafficPolicy. 

Additional Notes

@gateway-bot gateway-bot added do-not-merge/description-invalid do-not-merge/kind-invalid Indicates a PR lacks a `kind/foo` label and requires one. do-not-merge/release-note-invalid Indicates that a PR should not merge because it's missing one of the release note labels. labels Nov 17, 2025
@timflannagan
Copy link
Member

Very much in favor of this. Just shoot me a ping once this is ready for review.

@gateway-bot gateway-bot added kind/breaking_change release-note and removed do-not-merge/kind-invalid Indicates a PR lacks a `kind/foo` label and requires one. do-not-merge/release-note-invalid Indicates that a PR should not merge because it's missing one of the release note labels. labels Nov 17, 2025
@puertomontt puertomontt marked this pull request as ready for review November 17, 2025 19:55
Copilot AI review requested due to automatic review settings November 17, 2025 19:55
Copy link
Contributor

Copilot AI left a 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 Template type to InjaTemplate for 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.

Copy link
Contributor

@npolshakova npolshakova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@npolshakova npolshakova added this pull request to the merge queue Nov 17, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 17, 2025
@npolshakova npolshakova added this pull request to the merge queue Nov 17, 2025
Merged via the queue into kgateway-dev:main with commit 4ace5f1 Nov 17, 2025
27 checks passed
@puertomontt puertomontt linked an issue Nov 18, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TrafficPolicy clean up

5 participants