Skip to content

Commit

Permalink
Add wellknown compressor gzip filter type constant
Browse files Browse the repository at this point in the history
  • Loading branch information
chintan8saaras committed Aug 5, 2021
1 parent b5a4e22 commit b134321
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion enroute-dp/internal/envoy/listener_filter_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func httpFilters(vh *dag.Vertex) []*envoy_extensions_filters_network_http_connec
CompressorLibrary: &envoy_core_v3.TypedExtensionConfig{
Name: "gzip",
TypedConfig: &any.Any{
TypeUrl: cfg.HTTPFilterGzip,
TypeUrl: cfg.HTTPFilterCompressorGzip,
},
},
}),
Expand Down
2 changes: 1 addition & 1 deletion enroute-dp/internal/envoy/listener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func TestHTTPConnectionManager(t *testing.T) {
CompressorLibrary: &envoy_core_v3.TypedExtensionConfig{
Name: "gzip",
TypedConfig: &any.Any{
TypeUrl: cfg.HTTPFilterGzip,
TypeUrl: cfg.HTTPFilterCompressorGzip,
},
},
}),
Expand Down
9 changes: 9 additions & 0 deletions enroute-dp/saarasconfig/wellknown.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package saarasconfig

import (
_ "github.com/saarasio/enroute/enroute-dp/apis/enroute/v1"
)

const (
HTTPFilterCompressorGzip = "type.googleapis.com/envoy.extensions.compression.gzip.compressor.v3.Gzip"
)

0 comments on commit b134321

Please sign in to comment.