Skip to content
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

apply plugin network filters to TCP filter chains #10822

Merged
merged 5 commits into from
Mar 13, 2025

Conversation

stevenctl
Copy link
Contributor

@stevenctl stevenctl commented Mar 12, 2025

Description

Split out from #10783

share code for applying custom fitler chain field and from plugins for both HTTP and TCP chains

Context

Needed for waypoints, which add NetworkFilter globally to every chain on sandwiched proxies.

Testing steps

Added a unit test

Copy link
Contributor

@lgadban lgadban left a comment

Choose a reason for hiding this comment

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

LGTM, just 1 suggestion for the test

reporter,
)

if len(envoyListener.FilterChains) == 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

can we also assert the expected length of the FilterChains?
that would have helped me parsing this test (and the desired behavior of the fc.go changes) and seems like a good assertion in general

Signed-off-by: Steven Landow <[email protected]>
@lgadban
Copy link
Contributor

lgadban commented Mar 13, 2025

--- FAIL: TestFilterChains (0.01s)
    fc_test.go:102: got 2 Envoy filter chains, but wanted 2

lol

Signed-off-by: Steven Landow <[email protected]>
@stevenctl
Copy link
Contributor Author

lol that's what I get for using the web editor; fixed

image

@stevenctl stevenctl added this pull request to the merge queue Mar 13, 2025
Merged via the queue into main with commit a2753cf Mar 13, 2025
11 checks passed
@stevenctl stevenctl deleted the stevenctl/tcp-fc-plugins branch March 13, 2025 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants