Publish curated Unraid-AppOps-Gateway source from 4f99d8f6ea4fb8ae105b83570344b25fa05c31fd

This commit is contained in:
Public Source Publisher committed 2026-10-02 18:50:59 +00:00
1 parent 27a33107a3
commit f50d6e8c2c
14 files changed
+1178 -21

No files matched your search

+23 -1
View File
@@ -15,11 +15,12 @@ from sqlmodel import Session
from ..core.security import require_operator_request
from ..db.session import get_session
from ..schemas.deployment import DeploymentPlanV1
from ..schemas.forge_bootstrap import ForgeBootstrapPreflightV1
from ..services.deployment_broker import DeploymentBrokerClient
from ..services.deployment_control_plane import (
DeploymentControlError,
DeploymentControlPlane,
)
from ..services.deployment_broker import DeploymentBrokerClient
def _require_deployment_operator(request: Request) -> str:
@@ -95,6 +96,27 @@ def preflight_workmesh_promotion(
raise HTTPException(status_code=409, detail=str(exc)) from exc
@router.post("/forge-bootstrap/preflight")
def preflight_forge_bootstrap(
payload: ForgeBootstrapPreflightV1,
session: DeploymentSession,
idempotency_key: DeploymentIdempotencyKey = None,
):
from ..services.forge_bootstrap_preflight import (
ForgeBootstrapPreflightError,
ForgeBootstrapPreflightService,
)
try:
return ForgeBootstrapPreflightService().preflight(
session,
payload,
idempotency_key=_idempotency_header(idempotency_key),
)
except ForgeBootstrapPreflightError as exc:
raise HTTPException(status_code=409, detail=str(exc)) from exc
@router.get("/workmesh/promotions/{promotion_id}")
def get_workmesh_promotion(promotion_id: str, session: DeploymentSession):
from ..services.workmesh_promotion import WorkMeshPromotionService