kubernetes.node.uncordon ​
Mark a Node as schedulable (kubectl uncordon equivalent)
Marks a Kubernetes Node as schedulable by setting spec.unschedulable: false, equivalent to kubectl uncordon <node>. The operation is idempotent: uncordoning an already-schedulable node succeeds silently.
Inputs:
- connection_uuid: Cloud connection UUID (required)
- name: Node name (required)
Outputs:
- previously_unschedulable: True if the node was unschedulable (cordoned) before this call, False if it was already schedulable.
Plugin required: context.get_plugin("connection").kubernetes_runner_clients(connection_uuid, organization_uuid) must expose core_v1 (a CoreV1Api instance) with read_node and patch_node.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-kubernetes |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | Yes | — | — |
name | string | Yes | — | — |
organization_uuid | uuid | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | — |
organization_uuid | uuid | No | — | — |
name | string | No | — | — |
previously_unschedulable | boolean | No | — | — |
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 | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "kubernetes.node.uncordon",
"initial_data": {
"connection_uuid": "value",
"name": "value"
}
}