EnvoyFilterUsesRemoveOperationIncorrectly

Message NameEnvoyFilterUsesRemoveOperationIncorrectly
Message CodeIST0154
DescriptionThe REMOVE operation will be ignored when applyTo is set to ROUTE_CONFIGURATION, or HTTP_ROUTE.
LevelError

This message occurs when an EnvoyFilter uses the REMOVE operation and ApplyTo is set to ROUTE_CONFIGURATION or HTTP_ROUTE. This will cause the REMOVE operation to be ignored. At the moment only the MERGE operation can be used for ROUTE_CONFIGURATION.

An example

Consider an EnvoyFilter with the patch operation of REMOVE where this EnvoyFilter will just be ignored:

  1. apiVersion: networking.istio.io/v1alpha3
  2. kind: EnvoyFilter
  3. metadata:
  4. name: test-remove-2
  5. namespace: bookinfo
  6. spec:
  7. workloadSelector:
  8. labels:
  9. app: mysvc2
  10. configPatches:
  11. - applyTo: ROUTE_CONFIGURATION
  12. match:
  13. context: GATEWAY
  14. listener:
  15. filterChain:
  16. sni: app.example.com
  17. filter:
  18. name: "envoy.filters.network.http_connection_manager.InternalAddressConfig"
  19. patch:
  20. operation: REMOVE