python3 -m venv .venv
source .venv/bin/activate
./proto-build.shVerify src/ contains: /envoy, /validate, /xds, /udpa
If you prefer not to use proto-build.sh:
-
Install protoc and tools
uv sync --group proto
-
Build Envoy protobufs
Code to help pull and build is at:
https://github.com/cetanu/envoy_data_plane.git. This builds envoy protos insrc/envoy_data_plane_pb2/. Copy theenvoydirectory.cd .. git clone git@github.com:cetanu/envoy_data_plane.git cd envoy_data_plane python build.py cd .. cp -r envoy_data_plane/src/envoy_data_plane_pb2/envoy plugins-adapter/src/
-
Get XDS protobufs
This XDS repo contains python code for
validate,xds, andudpa. Go to thepythonfolder.git clone https://github.com/cncf/xds.git cp -rf xds/python/xds xds/python/validate xds/python/udpa plugins-adapter/src/
-
Install dependencies and run
Ensure by this point you have the envoy, validate, xds, udpa python protobuf folders in src/ to run the external processor server (server.py).
uv sync
uv run python src/server.py