Skip to content
Proud to collaborate with Microsoft for Startups

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 ​

PropertyValue
Workflow typeLinear
LibraryApp-kubernetes
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidYes——
namespacestringYes——
namestringYes——
timeout_secondsintegerNo——
poll_intervalintegerNo——
workflow_run_idstringNo—Engine workflow run id for DAG step execution
organization_uuiduuidNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo——
organization_uuiduuidNo——
namespacestringNo——
namestringNo——
timeout_secondsintegerNo——
poll_intervalintegerNo——
elapsed_secondsintegerNo——
poll_countintegerNo——
started_atintegerNo——
boundbooleanNo——
volume_namestringNo——
last_observed_statusjsonNo——
workflow_run_idstringNo—Engine workflow run id for DAG step execution
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—start_polling—
waitingNoNo———
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingstart_pollingwaiting—
waitingpollwaiting—
waitingcompletecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "kubernetes.pvc.wait_for_bound",
  "initial_data": {
    "connection_uuid": "value",
    "namespace": "value",
    "name": "value"
  }
}