deploy.k8s.import-cluster
Adopt every Deployment on a Kubernetes cluster as DeploymentTargets — lists namespaces, filters out k8s internals (kube-*, default, ltinteg-system), and runs the per-namespace upsert for each. One run = full cluster onboarding.
One-shot import of every (non-system) namespace's Deployments as DeploymentTargets.
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 | Yes | — | UUID of the kubernetes-type CloudConnection |
skip_system_namespaces | boolean | No | — | Skip kube-*, default, ltinteg-system (default True) |
include_namespaces | json | No | — | Optional allowlist of namespace names; everything else is skipped |
exclude_namespaces | json | No | — | Optional denylist of namespace names (on top of system skips) |
namespace_label_selector | string | No | — | kubectl-style label selector for the namespace.list call |
label_selector | string | No | — | kubectl-style label selector for each per-namespace deployment.list |
default_product_type | string | No | — | DeploymentProductType for new rows (default 'service') |
default_target_type | string | No | — | DeploymentTargetType for new rows (default 'container_service') |
Output Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | No | — | — |
cloud_connection_uuid | uuid | No | — | — |
skip_system_namespaces | boolean | No | — | — |
include_namespaces | json | No | — | — |
exclude_namespaces | json | No | — | — |
namespace_label_selector | string | No | — | — |
label_selector | string | No | — | — |
default_product_type | string | No | — | — |
default_target_type | string | No | — | — |
namespaces_seen | integer | No | — | — |
namespaces_imported | integer | No | — | — |
namespaces_skipped | json | No | — | List of {namespace, reason} for each namespace not imported |
total_imported | integer | No | — | — |
total_created | integer | No | — | — |
total_updated | integer | No | — | — |
per_namespace | json | No | — | List of per-namespace summaries (same shape import-namespace returns) |
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.import-cluster",
"initial_data": {
"organization_uuid": "value",
"cloud_connection_uuid": "value"
}
}