deploy.k8s.sync-all
Bulk-refresh DeploymentTarget.status / last_ready_check_at / provider_metadata for every KUBERNETES target in an org (optionally narrowed by cloud_connection or namespace).
Sync the cached status of every KUBERNETES DeploymentTarget in scope.
Overview
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-deployments |
| Version | 1.0 |
Input Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
cloud_connection_uuid | uuid | No | — | Narrow to one kubernetes connection |
namespace | string | No | — | Narrow to one namespace |
limit | integer | No | — | Max targets to sync per run (default 200, cap 500) |
Output Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | No | — | — |
cloud_connection_uuid | uuid | No | — | — |
namespace | string | No | — | — |
limit | integer | No | — | — |
total_targets | integer | No | — | — |
synced_count | integer | No | — | — |
ready_count | integer | No | — | — |
rolling_count | integer | No | — | — |
missing_count | integer | No | — | — |
errored_count | integer | No | — | — |
checked_at | string | 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": "deploy.k8s.sync-all",
"initial_data": {
"organization_uuid": "value"
}
}