-
Notifications
You must be signed in to change notification settings - Fork 368
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
feat: implement response compression #5001
base: main
Are you sure you want to change the base?
Conversation
4e010ee
to
9c0ddb8
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5001 +/- ##
==========================================
+ Coverage 66.78% 66.85% +0.06%
==========================================
Files 209 210 +1
Lines 32362 32526 +164
==========================================
+ Hits 21614 21744 +130
- Misses 9446 9468 +22
- Partials 1302 1314 +12 ☔ View full report in Codecov by Sentry. |
76681e4
to
0d5cc71
Compare
@@ -32,8 +32,8 @@ func init() { | |||
// Copied from the conformance suite because it's needed in casePreservingRoundTrip | |||
var startLineRegex = regexp.MustCompile(`(?m)^`) | |||
|
|||
func formatDump(data []byte, prefix string) string { | |||
data = startLineRegex.ReplaceAllLiteral(data, []byte(prefix)) | |||
func formatDump(data []byte) string { |
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.
To fix lint error:
test/e2e/tests/preservecase.go:35:30: `formatDump` - `prefix` always receives `"< "` (unparam)
870e368
to
1f85138
Compare
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
f676e62
to
093939d
Compare
Signed-off-by: Huabing Zhao <[email protected]>
093939d
to
7f697d9
Compare
internal/gatewayapi/testdata/backendtrafficpolicy-compression.in.yaml
Outdated
Show resolved
Hide resolved
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
This reverts commit 969d0db. Signed-off-by: Huabing Zhao <[email protected]>
fda0b04
to
20bd82a
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.
LGTM thanks !
This PR introduces support for response compression in the
BackendTrafficPolicy
.Currently, brotli and gzip are supported.
Implements #2451
Release Notes: Yes