feat: add smolmachines/egress_apply proxying docker backend
lint / lint (push) Successful in 1m40s
test / unit (pull_request) Successful in 33s
test / integration (pull_request) Successful in 16s

This commit is contained in:
2026-06-23 06:53:56 +00:00
parent 7a991e1f5e
commit 5808d0b828
2 changed files with 28 additions and 1 deletions
+7 -1
View File
@@ -33,6 +33,9 @@ from ..backend.docker.egress_apply import (
from ..backend.macos_container.egress_apply import (
apply_routes_change as _macos_apply_routes_change,
)
from ..backend.smolmachines.egress_apply import (
apply_routes_change as _smolmachines_apply_routes_change,
)
from ..log import Die, error, info
@@ -78,8 +81,11 @@ ApplyError = (CapabilityApplyError, EgressApplyError)
def apply_routes_change(slug: str, content: str) -> tuple[str, str]:
meta = read_metadata(slug)
if meta is not None and meta.backend == "macos-container":
backend = meta.backend if meta is not None else ""
if backend == "macos-container":
return _macos_apply_routes_change(slug, content)
if backend == "smolmachines":
return _smolmachines_apply_routes_change(slug, content)
return _docker_apply_routes_change(slug, content)