feat(labs): describe the lab task contract and the provisioner port

This commit is contained in:
shira committed 2026-10-11 15:40:14 +03:00
1 parent 3de226b16c
commit 9fdaa62b9b
91 files changed
+19262 -155

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
get:
operationId: GetLabdReadyz
summary: Check whether the provisioner can create and delete labs.
description: >-
Ready means that the lab records were loaded, the startup reconciliation
with LXD finished, the LXD API answered the latest probe, and the process
is not draining. A provisioner without free capacity is still ready;
capacity is reported by CreateLab.
security: []
tags:
- health
responses:
"200":
description: The provisioner is ready.
content:
application/json:
schema:
$ref: ../components/schemas.yml#/LabdReadinessResponse
"503":
description: The provisioner is not ready or is draining.
content:
application/json:
schema:
$ref: ../components/schemas.yml#/LabdReadinessResponse
default:
$ref: ../components/responses.yml#/Problem