Publish curated Unraid-AppOps-Gateway source from a480f280f26f4aa48c61394fa841d2233067c208
This commit is contained in:
1 parent
e73772cdf2
commit
820244dbb3
13 files changed
+2141
-26
No files matched your search
@@ -21,6 +21,7 @@ from ..schemas.forge_secret_delivery import (
|
||||
ForgeSecretDeliveryRequestV1,
|
||||
ForgeSecretDeliveryResultV1,
|
||||
)
|
||||
from ..schemas.forge_runtime_readiness import ForgeRuntimeReadinessResultV1
|
||||
from ..services.deployment_broker import DeploymentBrokerClient
|
||||
from ..services.deployment_control_plane import (
|
||||
DeploymentControlError,
|
||||
@@ -208,6 +209,29 @@ def get_forge_first_install(job_id: str, session: DeploymentSession):
|
||||
return result
|
||||
|
||||
|
||||
@router.get(
|
||||
"/forge-bootstrap/first-install/{job_id}/readiness",
|
||||
response_model=ForgeRuntimeReadinessResultV1,
|
||||
)
|
||||
def get_forge_first_install_readiness(
|
||||
job_id: str,
|
||||
request: Request,
|
||||
session: DeploymentSession,
|
||||
):
|
||||
"""Return only a fresh, fixed controller observation for a known install."""
|
||||
content_lengths = request.headers.getlist("content-length")
|
||||
if (
|
||||
request.query_params
|
||||
or len(content_lengths) > 1
|
||||
or (content_lengths and content_lengths[0] != "0")
|
||||
or request.headers.getlist("transfer-encoding")
|
||||
):
|
||||
raise HTTPException(status_code=400, detail="invalid_readiness_request")
|
||||
from ..services.forge_bootstrap_apply import ForgeBootstrapApplyService
|
||||
|
||||
return ForgeBootstrapApplyService().current_readiness(session, job_id)
|
||||
|
||||
|
||||
@router.get("")
|
||||
def list_deployments(session: DeploymentSession, limit: DeploymentLimit = 100):
|
||||
return {"items": DeploymentControlPlane().list_jobs(session, limit=limit)}
|
||||
|
||||
Reference in new issue
Block a user