Chore: Skip gzip for apiserver routes (#92245)

This commit is contained in:
Todd Treece 2024-08-21 16:47:58 -04:00 committed by GitHub
parent e4953b6ffd
commit 733ae1f099
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,6 +42,7 @@ func prefix(p string) matcher { return func(s string) bool { return strings.HasP
func substr(p string) matcher { return func(s string) bool { return strings.Contains(s, p) } }
var gzipIgnoredPaths = []matcher{
prefix("/apis"), // apiserver handles its own compression https://github.com/kubernetes/kubernetes/blob/b60e01f881aa8a74b44d0ac1000e4f67f854273b/staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/writers.go#L155-L158
prefix("/api/datasources"),
prefix("/api/plugins"),
prefix("/api/plugin-proxy/"),