noheat: Add workaround for SDC case-sensivity in Istio
[integration.git] / deployment / noheat / cluster-rke / ansible / roles / deps / files / envoyfilter-case.yml
1 ---
2 apiVersion: networking.istio.io/v1alpha3
3 kind: EnvoyFilter
4 metadata:
5   name: header-casing
6   namespace: istio-config
7 spec:
8   configPatches:
9   - applyTo: CLUSTER
10     match:
11       context: ANY
12     patch:
13       operation: MERGE
14       value:
15         typed_extension_protocol_options:
16           envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
17             '@type': type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
18             use_downstream_protocol_config:
19               http_protocol_options:
20                 header_key_format:
21                   stateful_formatter:
22                     name: preserve_case
23                     typed_config:
24                       '@type': type.googleapis.com/envoy.extensions.http.header_formatters.preserve_case.v3.PreserveCaseFormatterConfig
25   - applyTo: NETWORK_FILTER
26     match:
27       listener:
28         filterChain:
29           filter:
30             name: envoy.filters.network.http_connection_manager
31     patch:
32       operation: MERGE
33       value:
34         typed_config:
35           '@type': type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
36           http_protocol_options:
37             header_key_format:
38               stateful_formatter:
39                 name: preserve_case
40                 typed_config:
41                   '@type': type.googleapis.com/envoy.extensions.http.header_formatters.preserve_case.v3.PreserveCaseFormatterConfig