09393b354b
Completes the de-sidecar cleanup: no live code, test, current doc, script, or nix file mentions or is named "sidecar" any more. Only the dated PRD/research docs keep the term as historical record (agreed on the #385 thread). - Rename `sidecar_init.py`→`gateway_init.py` was done earlier; this pass sweeps the remaining descriptive uses: the egress / git-gate / supervise components are the gateway's *daemons*, the shared container is the *gateway*, the old per-bottle container was the *companion container*. - Rename `tests/integration/test_sidecar_bundle_image.py`→`test_gateway_image.py` and its class; update `docs/ci.md` + `tests/README.md` for the renamed/ removed integration tests. - `SIDECAR_PORTS` shell var in `scripts/firecracker-netpool.sh`→`GATEWAY_PORTS`. Full unit suite green (bar the pre-existing `/bin/sleep`-missing env errors in test_gateway_init); docker integration — gateway singleton, broker, real two-bottle multitenant isolation, and the gateway-image build — all pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBMWTEtQdJ4W5UrWuLHCck
30 lines
1.0 KiB
Python
30 lines
1.0 KiB
Python
"""Host-side egress route-apply for the docker backend.
|
|
|
|
The per-bottle companion container this used to signal (`docker kill
|
|
--signal HUP <container>`) was removed in the companion-container removal (#385).
|
|
In the consolidated model the shared gateway resolves egress policy
|
|
per-request against the orchestrator rather than reloading a per-bottle
|
|
routes file, so the live per-bottle reload is not supported here and
|
|
fails closed until the gateway-side apply lands.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from ..egress_apply import EgressApplicator, EgressApplyError
|
|
|
|
|
|
class DockerEgressApplicator(EgressApplicator):
|
|
def _signal_bundle_reload(self, slug: str) -> None:
|
|
del slug
|
|
raise EgressApplyError(
|
|
"live egress route-apply was removed with the per-bottle "
|
|
"companion container (#385); route changes will flow through "
|
|
"the consolidated gateway in a follow-up."
|
|
)
|
|
|
|
|
|
applicator = DockerEgressApplicator()
|
|
|
|
|
|
__all__ = ["DockerEgressApplicator", "EgressApplyError", "applicator"]
|