diff --git a/extensions/stats/testdata/istio/stats_filter.yaml b/extensions/stats/testdata/istio/stats_filter.yaml index 1020464a2d27..b26acd1b99f8 100644 --- a/extensions/stats/testdata/istio/stats_filter.yaml +++ b/extensions/stats/testdata/istio/stats_filter.yaml @@ -3,58 +3,27 @@ kind: EnvoyFilter metadata: name: stats-filter spec: - filters: - - filterConfig: - configuration: | - { - "debug": "false", - "stat_prefix": "istio", - } - vm_config: - code: - inline_string: envoy.wasm.stats - vm: envoy.wasm.vm.null - filterName: envoy.wasm - filterType: HTTP - insertPosition: - index: BEFORE - relativeTo: envoy.router - listenerMatch: - listenerProtocol: HTTP - listenerType: GATEWAY - - filterConfig: - configuration: | - { - "debug": "false", - "stat_prefix": "istio", - } - vm_config: - code: - inline_string: envoy.wasm.stats - vm: envoy.wasm.vm.null - filterName: envoy.wasm - filterType: HTTP - insertPosition: - index: BEFORE - relativeTo: envoy.router - listenerMatch: - listenerProtocol: HTTP - listenerType: SIDECAR_INBOUND - - filterConfig: - configuration: | - { - "debug": "false", - "stat_prefix": "istio", - } - vm_config: - code: - inline_string: envoy.wasm.stats - vm: envoy.wasm.vm.null - filterName: envoy.wasm - filterType: HTTP - insertPosition: - index: BEFORE - relativeTo: envoy.router - listenerMatch: - listenerProtocol: HTTP - listenerType: SIDECAR_OUTBOUND + configPatches: + - applyTo: HTTP_FILTER + match: + context: ANY # inbound, outbound, and gateway + listener: + filterChain: + filter: + name: "envoy.http_connection_manager" + subFilter: + name: "envoy.router" + patch: + operation: INSERT_BEFORE + value: + name: envoy.wasm + config: + configuration: | + { + "debug": "false", + "stat_prefix": "istio", + } + vm_config: + vm: envoy.wasm.vm.null + code: + inline_string: envoy.wasm.stats