Skip to content
Proud to collaborate with Microsoft for Startups

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 ​

PropertyValue
Workflow typeAtomic
LibraryApp-deployments
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
cloud_connection_uuiduuidYes—UUID of the kubernetes-type CloudConnection
skip_system_namespacesbooleanNo—Skip kube-*, default, ltinteg-system (default True)
include_namespacesjsonNo—Optional allowlist of namespace names; everything else is skipped
exclude_namespacesjsonNo—Optional denylist of namespace names (on top of system skips)
namespace_label_selectorstringNo—kubectl-style label selector for the namespace.list call
label_selectorstringNo—kubectl-style label selector for each per-namespace deployment.list
default_product_typestringNo—DeploymentProductType for new rows (default 'service')
default_target_typestringNo—DeploymentTargetType for new rows (default 'container_service')

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidNo——
cloud_connection_uuiduuidNo——
skip_system_namespacesbooleanNo——
include_namespacesjsonNo——
exclude_namespacesjsonNo——
namespace_label_selectorstringNo——
label_selectorstringNo——
default_product_typestringNo——
default_target_typestringNo——
namespaces_seenintegerNo——
namespaces_importedintegerNo——
namespaces_skippedjsonNo—List of {namespace, reason} for each namespace not imported
total_importedintegerNo——
total_createdintegerNo——
total_updatedintegerNo——
per_namespacejsonNo—List of per-namespace summaries (same shape import-namespace returns)
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

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"
  }
}