How custom filter linking works in Envoy
mainThis project demonstrates how to link additional filters into the Envoy binary by creating a new static binary target.
- Submodule Integration: The main Envoy repository is included as a git submodule.
- Workspace Mapping: The
WORKSPACEfile maps the@envoyrepository to the local submodule path. - Binary Construction: The
BUILDfile defines a new target (//:envoy) that links the custom filter (e.g.,echo2) with the standard Envoy main entry library (@envoy//source/exe:envoy_main_entry_lib). - Registration: The custom filter registers itself during the static initialization phase of the Envoy binary, making it available for use in Envoy configurations.