Skip to content

Commit

Permalink
drop EnvoyFilter Context
Browse files Browse the repository at this point in the history
Signed-off-by: spacewander <[email protected]>
  • Loading branch information
spacewander committed Mar 15, 2024
1 parent 6737fe9 commit 206840b
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 15 deletions.
3 changes: 0 additions & 3 deletions controller/internal/istio/envoyfilter.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ func DefaultEnvoyFilters() map[string]*istiov1a3.EnvoyFilter {
// And user-defined envoy filter won't apply to mesh because:
// 1. We don't support attaching policy to mesh.
// 2. Mesh configuration doesn't have Go HTTP filter.
Context: istioapi.EnvoyFilter_GATEWAY,
ObjectTypes: &istioapi.EnvoyFilter_EnvoyConfigObjectMatch_Listener{
Listener: &istioapi.EnvoyFilter_ListenerMatch{
FilterChain: &istioapi.EnvoyFilter_ListenerMatch_FilterChainMatch{
Expand Down Expand Up @@ -120,7 +119,6 @@ func DefaultEnvoyFilters() map[string]*istiov1a3.EnvoyFilter {
patches = append(patches, &istioapi.EnvoyFilter_EnvoyConfigObjectPatch{
ApplyTo: istioapi.EnvoyFilter_HTTP_FILTER,
Match: &istioapi.EnvoyFilter_EnvoyConfigObjectMatch{
Context: istioapi.EnvoyFilter_GATEWAY,
ObjectTypes: &istioapi.EnvoyFilter_EnvoyConfigObjectMatch_Listener{
Listener: &istioapi.EnvoyFilter_ListenerMatch{
FilterChain: &istioapi.EnvoyFilter_ListenerMatch_FilterChainMatch{
Expand Down Expand Up @@ -223,7 +221,6 @@ func GenerateConsumers(consumers map[string]interface{}) *istiov1a3.EnvoyFilter
{
ApplyTo: istioapi.EnvoyFilter_HTTP_FILTER,
Match: &istioapi.EnvoyFilter_EnvoyConfigObjectMatch{
Context: istioapi.EnvoyFilter_GATEWAY,
ObjectTypes: &istioapi.EnvoyFilter_EnvoyConfigObjectMatch_Listener{
Listener: &istioapi.EnvoyFilter_ListenerMatch{
FilterChain: &istioapi.EnvoyFilter_ListenerMatch_FilterChainMatch{
Expand Down
5 changes: 0 additions & 5 deletions controller/internal/istio/testdata/default_filters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
configPatches:
- applyTo: HTTP_FILTER
match:
context: GATEWAY
listener:
filterChain:
filter:
Expand All @@ -24,7 +23,6 @@
plugin_name: fm
- applyTo: HTTP_FILTER
match:
context: GATEWAY
listener:
filterChain:
filter:
Expand All @@ -41,7 +39,6 @@
statPrefix: http_local_rate_limiter
- applyTo: HTTP_FILTER
match:
context: GATEWAY
listener:
filterChain:
filter:
Expand All @@ -58,7 +55,6 @@
statPrefix: http_local_rate_limiter
- applyTo: HTTP_FILTER
match:
context: GATEWAY
listener:
filterChain:
filter:
Expand All @@ -75,7 +71,6 @@
statPrefix: http_local_rate_limiter
- applyTo: HTTP_FILTER
match:
context: GATEWAY
listener:
filterChain:
filter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
configPatches:
- applyTo: HTTP_FILTER
match:
context: GATEWAY
listener:
filterChain:
filter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
configPatches:
- applyTo: HTTP_FILTER
match:
context: GATEWAY
listener:
filterChain:
filter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
configPatches:
- applyTo: HTTP_FILTER
match:
context: GATEWAY
listener:
filterChain:
filter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
configPatches:
- applyTo: HTTP_FILTER
match:
context: GATEWAY
listener:
filterChain:
filter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
configPatches:
- applyTo: HTTP_FILTER
match:
context: GATEWAY
listener:
filterChain:
filter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
configPatches:
- applyTo: HTTP_FILTER
match:
context: GATEWAY
listener:
filterChain:
filter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
configPatches:
- applyTo: HTTP_FILTER
match:
context: GATEWAY
listener:
filterChain:
filter:
Expand Down

0 comments on commit 206840b

Please sign in to comment.