https://pulumi.com logo
#typescript
Title
# typescript
a

abundant-match-36405

05/10/2022, 5:10 PM
Hi, I am unabl to create envoy filter in pulumi, can any one please help me. i am using below yaml
Copy code
apiVersion: <http://networking.istio.io/v1alpha3|networking.istio.io/v1alpha3>
kind: EnvoyFilter
metadata:
  name: test
spec:
  workloadLabels:
    app: test
  filters:
  - listenerMatch:
      portNumber: 80
      listenerType: SIDECAR_INBOUND 
      listenerProtocol: HTTP
    filterName: envoy.lua
    filterType: HTTP
    filterConfig:
      inlineCode: |
          function envoy_on_request(request_handle)
            headers = request_handle:headers()
            request_handle:headers():add("client-id", headers:get("jwt"))
            request_handle:headers():remove("jwt")
          end
b

billowy-army-68599

05/10/2022, 5:52 PM
11 Views