Skip to content
Proud to collaborate with Microsoft for Startups

deploy.k8s.import-namespace ​

Adopt every Deployment in a Kubernetes namespace as a DeploymentTarget row, keyed by (cloud_connection, namespace, app_name).

Import all Deployments in a Kubernetes namespace as DeploymentTargets.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-deployments
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
cloud_connection_uuiduuidYes—UUID of the kubernetes-type CloudConnection
namespacestringYes—Cluster namespace to discover (e.g. ltinteg-product)
label_selectorstringNo—Optional kubectl-style label selector
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——
namespacestringNo——
label_selectorstringNo——
default_product_typestringNo——
default_target_typestringNo——
imported_countintegerNo——
created_countintegerNo——
updated_countintegerNo——
targetsjsonNo—List of {uuid, namespace, app_name, status, image} per target touched
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-namespace",
  "initial_data": {
    "organization_uuid": "value",
    "cloud_connection_uuid": "value",
    "namespace": "value"
  }
}