Verifiers¶
Entity type¶
curl -X POST http://localhost:8081/api/v1/entity-types -H "Content-Type: application/json" -d '{
"entity_application_validation_dsl": "gpu-node-validation:1.0",
"entity_metadata": {"name": "gpu-node"},
"events_handler_dsl": "gpu-node-events:1.0"
}'
Capability¶
curl -X POST http://localhost:8081/api/v1/capabilities -H "Content-Type: application/json" -d '{
"entity_type_id": "<id>",
"capability_check_dsl": "gpu-check:1.0",
"capability_metadata": {"name": "has-gpu"},
"capability_check_mock_data": {},
"dsl_run_mode": "one-time",
"dsl_run_config": {}
}'
| Run mode | When the check runs |
|---|---|
one-time |
Once |
continuous |
Repeatedly |
event-driven |
On events |
Deploy¶
curl -X POST http://localhost:8081/api/v1/verifiers/deploy -H "Content-Type: application/json" -d '{
"entity_type_id": "<id>", "cluster_id": "cluster-1", "metadata": {}, "config_overrides": {}
}'
A deployment and a service are created in Kubernetes. When they are ready, the verifier is announced to the registry of registries and becomes active. image selects another image.
Change and retire¶
POST /api/v1/verifiers/config/update with service_id and config_parameters stores the parameters and sends them to the verifier. DELETE /api/v1/verifiers/{id} retires it.
Status¶
pending, active, failed or retired.