Skip to content

Comments

test: add e2e test for GatewayParameters update triggering reconciliation#13485

Open
chandler-solo wants to merge 3 commits intokgateway-dev:mainfrom
chandler-solo:chandler/newgatewaycontrollerextension
Open

test: add e2e test for GatewayParameters update triggering reconciliation#13485
chandler-solo wants to merge 3 commits intokgateway-dev:mainfrom
chandler-solo:chandler/newgatewaycontrollerextension

Conversation

@chandler-solo
Copy link
Contributor

@chandler-solo chandler-solo commented Feb 10, 2026

Description

We have to reconcile the data plane if gateway parameters (GatewayParameters) change. Let's add a test.

Change Type

/kind cleanup

Changelog

NONE

Additional Notes

We have to reconcile the data plane if gateway parameters
change (GatewayParameters re: envoy, AgentgatewayParameters re: agentgateway),
and we had duplicate code but were using only one of the two routines. I think
this deduplication of gateway parameter event handling logic is better than
using both routines.

Signed-off-by: David L. Chandler <[email protected]>
Copilot AI review requested due to automatic review settings February 10, 2026 04:12
@gateway-bot gateway-bot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. release-note-none labels Feb 10, 2026
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 deduplicates the Gateway-parameter-driven event handling in the Gateway controller so Gateways reconcile when either GatewayParameters (envoy) or AgentgatewayParameters (agentgateway) change, and adds e2e coverage to ensure both parameter types trigger reconciliation.

Changes:

  • Consolidate duplicate parameter event handlers into a single gatewayParamEventHandler shared by both parameter clients.
  • Add an e2e test ensuring GatewayParameters updates propagate to the rendered Deployment (proving reconciliation).
  • Add a new agentgateway e2e suite and manifest ensuring AgentgatewayParameters updates trigger reconciliation.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
test/e2e/tests/agent_gateway_tests.go Registers the new agentgateway “Deployer” e2e suite.
test/e2e/features/deployer/suite.go Adds an e2e test verifying GatewayParameters updates trigger reconciliation (Deployment template annotation update).
test/e2e/features/agentgateway/deployer/types.go Defines manifest path and object metadata for the new agentgateway deployer suite.
test/e2e/features/agentgateway/deployer/testdata/agentgateway-with-parameters.yaml New test manifest wiring a Gateway to AgentgatewayParameters.
test/e2e/features/agentgateway/deployer/suite.go New e2e suite verifying AgentgatewayParameters updates reconcile and update the Deployment.
pkg/kgateway/controller/gw_controller.go Deduplicates parameter event handling by using one shared handler for both parameter types.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chandler-solo chandler-solo changed the title chore: Code cleanup re: GatewayParameters/AgentgatewayParameters test: add e2e test for GatewayParameters update triggering reconciliation Feb 15, 2026
@chandler-solo
Copy link
Contributor Author

This PR boils down to a single new test case after agengateway moved repos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. release-note-none

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants