fix(macos-container): mount live egress routes dir
lint / lint (push) Failing after 1m35s
test / unit (pull_request) Successful in 33s
test / integration (pull_request) Successful in 16s

This commit is contained in:
2026-06-23 01:39:29 -04:00
parent 0ec1085238
commit eb3e64ea8f
5 changed files with 42 additions and 8 deletions
+7 -2
View File
@@ -12,7 +12,7 @@ import subprocess
from pathlib import Path
from ...bottle_state import egress_state_dir, read_metadata
from ...egress import EGRESS_ROUTES_IN_CONTAINER
from ...egress import EGRESS_ROUTES_FILENAME, EGRESS_ROUTES_IN_CONTAINER
from ...egress_addon_core import load_routes
from ...log import warn
from .sidecar_bundle import sidecar_bundle_container_name
@@ -58,7 +58,12 @@ def validate_routes_content(content: str) -> None:
def _routes_path(slug: str) -> Path:
return egress_state_dir(slug) / "egress_routes.yaml"
state_dir = egress_state_dir(slug)
routes_path = state_dir / EGRESS_ROUTES_FILENAME
legacy_path = state_dir / "egress_routes.yaml"
if legacy_path.exists() and not routes_path.exists():
return legacy_path
return routes_path
def _signal_bundle_reload(slug: str) -> None: