Skip to content

Conversation

timflannagan
Copy link
Member

Description

Follow-up to the #12199 PR, which updated the route translator to handle invalid policy attached listener-and-gateway-wide.

This commit introduces several new functional tests to validate the new behavior and compliment existing route-level coverage in the route replacement e2e suite.

Partially fixes #11937.

Change Type

/kind cleanup

Changelog

NONE

Additional Notes

Follow-up to the kgateway-dev#12199 PR, which updated the route translator
to handle invalid policy attached listener-and-gateway-wide.

This commit introduces several new functional tests to validate
the new behavior and compliment existing route-level coverage
in the route replacement e2e suite.

Partially fixes kgateway-dev#11937.

Signed-off-by: timflannagan <[email protected]>
@Copilot Copilot AI review requested due to automatic review settings September 16, 2025 17:53
Copy link
Contributor

@Copilot 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 extends the route replacement policy tests by adding new end-to-end test cases to validate the behavior when invalid TrafficPolicies are attached at gateway-wide and listener-specific levels. The changes complement existing route-level coverage in the route replacement e2e test suite.

Key changes:

  • Addition of three new test scenarios for invalid policy attachment
  • Creation of YAML manifests for testing gateway-wide and listener-specific policy isolation
  • Implementation of test functions to verify blast radius containment and route replacement behavior

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test/kubernetes/e2e/features/routereplacement/types.go Added new manifest paths and proxy object metadata definitions for the extended test scenarios
test/kubernetes/e2e/features/routereplacement/testdata/listener-specific-invalid-policy.yaml Test manifest for listener-specific invalid policy isolation testing
test/kubernetes/e2e/features/routereplacement/testdata/listener-merge-blast-radius.yaml Test manifest for testing blast radius when merged listeners have invalid policies
test/kubernetes/e2e/features/routereplacement/testdata/gateway-wide-invalid-policy.yaml Test manifest for gateway-wide invalid policy testing
test/kubernetes/e2e/features/routereplacement/suite.go Implementation of three new test functions to validate policy attachment behavior and route replacement

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@github-actions github-actions bot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. release-note-none labels Sep 16, 2025
@timflannagan timflannagan added this pull request to the merge queue Sep 16, 2025
Merged via the queue into kgateway-dev:main with commit 512498e Sep 16, 2025
28 checks passed
@timflannagan timflannagan deleted the chore/rr-e2e-tests branch September 16, 2025 20:06
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.

Higher-level policy validation and replacement strategy
3 participants