EnvoyFilterUsesRelativeOperationWithProxyVersion

    How to resolve

    1. apiVersion: networking.istio.io/v1alpha3
    2. kind: EnvoyFilter
    3. metadata:
    4. name: test-replace-3
    5. namespace: bookinfo
    6. spec:
    7. workloadSelector:
    8. labels:
    9. app: reviews4
    10. priority: 10
    11. configPatches:
    12. # The first patch adds the Lua filter to the listener/http connection manager
    13. - applyTo: HTTP_FILTER
    14. context: SIDECAR_OUTBOUND
    15. proxy:
    16. proxyVersion: '^1\.11.*'
    17. listener:
    18. portNumber: 8080
    19. filterChain:
    20. filter:
    21. name: "envoy.filters.network.http_connection_manager"
    22. subFilter:
    23. patch:
    24. operation: REPLACE
    25. value: # Lua filter specification
    26. name: envoy.lua
    27. typed_config:
    28. "@type": "type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua"
    29. inlineCode: |
    30. function envoy_on_request(request_handle)
    31. -- Make an HTTP call to an upstream host with the following headers, body, and timeout.
    32. local headers, body = request_handle:httpCall(
    33. "lua_cluster",
    34. {
    35. [":method"] = "POST",
    36. [":path"] = "/acl",
    37. [":authority"] = "internal.org.net"
    38. },
    39. "authorize call",
    40. 1000)
    41. end
    42. kind: EnvoyFilter
    43. metadata:
    44. name: test-replace-4
    45. namespace: bookinfo
    46. workloadSelector:
    47. labels:
    48. app: reviews4
    49. priority: 20
    50. configPatches:
    51. - applyTo: HTTP_FILTER
    52. match:
    53. context: SIDECAR_OUTBOUND
    54. patch:
    55. operation: REPLACE
    56. value: #Lua filter specification
    57. name: envoy.lua
    58. typed_config:
    59. "@type": "type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua"
    60. inlineCode: |
    61. function envoy_on_request(request_handle)
    62. -- Make an HTTP call to an upstream host with the following headers, body, and timeout.
    63. local headers, body = request_handle:httpCall(
    64. "lua_cluster",
    65. {
    66. [":method"] = "POST",
    67. [":path"] = "/acl",
    68. [":authority"] = "internal.org.net"
    69. },
    70. "authorize call",
    71. end