Skip to content

Commit

Permalink
update metadata exchange filter to new EnvoyFilter API (#2427)
Browse files Browse the repository at this point in the history
Signed-off-by: Douglas Reid <douglas-reid@users.noreply.github.com>
  • Loading branch information
douglas-reid authored and istio-testing committed Oct 1, 2019
1 parent d5701c0 commit d52da5a
Showing 1 changed file with 18 additions and 40 deletions.
58 changes: 18 additions & 40 deletions extensions/stats/testdata/istio/metadata-exchange_filter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,21 @@ kind: EnvoyFilter
metadata:
name: metadata-exchange
spec:
filters:
- filterConfig:
configuration: envoy.wasm.metadata_exchange
vm_config:
code:
inline_string: envoy.wasm.metadata_exchange
vm: envoy.wasm.vm.null
filterName: envoy.wasm
filterType: HTTP
insertPosition:
index: FIRST
listenerMatch:
listenerProtocol: HTTP
listenerType: SIDECAR_INBOUND
- filterConfig:
configuration: envoy.wasm.metadata_exchange
vm_config:
code:
inline_string: envoy.wasm.metadata_exchange
vm: envoy.wasm.vm.null
filterName: envoy.wasm
filterType: HTTP
insertPosition:
index: FIRST
listenerMatch:
listenerProtocol: HTTP
listenerType: SIDECAR_OUTBOUND
- filterConfig:
configuration: envoy.wasm.metadata_exchange
vm_config:
code:
inline_string: envoy.wasm.metadata_exchange
vm: envoy.wasm.vm.null
filterName: envoy.wasm
filterType: HTTP
insertPosition:
index: FIRST
listenerMatch:
listenerProtocol: HTTP
listenerType: GATEWAY
configPatches:
- applyTo: HTTP_FILTER
match:
context: ANY # inbound, outbound, and gateway
listener:
filterChain:
filter:
name: "envoy.http_connection_manager"
patch:
operation: INSERT_BEFORE
value:
name: envoy.wasm
config:
configuration: envoy.wasm.metadata_exchange
vm_config:
vm: envoy.wasm.vm.null
code:
inline_string: envoy.wasm.metadata_exchange

0 comments on commit d52da5a

Please sign in to comment.