kubernetes.pvc.wait_for_bound ​
Poll a PersistentVolumeClaim until status.phase == Bound, or timeout
Poll a PersistentVolumeClaim in the given namespace until its status.phase transitions to Bound, or until timeout_seconds elapses.
4-state polling pattern: PENDING (auto_advance="start_polling") -> WAITING -> COMPLETED / FAILED
action_start_polling initialises elapsed/poll_count counters and schedules the first poll. action_poll reads the PVC status on each tick; on Bound it transitions to COMPLETED carrying volume_name; on timeout it transitions to COMPLETED with bound=False; otherwise it re-schedules itself.
Plugin required: context.get_plugin("connection") .kubernetes_runner_clients(connection_uuid, organization_uuid) must expose core_v1 (a CoreV1Api instance) with read_namespaced_persistent_volume_claim_status.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-kubernetes |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | Yes | — | — |
namespace | string | Yes | — | — |
name | string | Yes | — | — |
timeout_seconds | integer | No | — | — |
poll_interval | integer | No | — | — |
workflow_run_id | string | No | — | Engine workflow run id for DAG step execution |
organization_uuid | uuid | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | — |
organization_uuid | uuid | No | — | — |
namespace | string | No | — | — |
name | string | No | — | — |
timeout_seconds | integer | No | — | — |
poll_interval | integer | No | — | — |
elapsed_seconds | integer | No | — | — |
poll_count | integer | No | — | — |
started_at | integer | No | — | — |
bound | boolean | No | — | — |
volume_name | string | No | — | — |
last_observed_status | json | No | — | — |
workflow_run_id | string | No | — | Engine workflow run id for DAG step execution |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | start_polling | — |
waiting | No | No | — | — | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | start_polling | waiting | — |
waiting | poll | waiting | — |
waiting | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "kubernetes.pvc.wait_for_bound",
"initial_data": {
"connection_uuid": "value",
"namespace": "value",
"name": "value"
}
}