Deployments
Preview

Get what a deployment was imported from

For a deployment an import made: the tool and the object it came from, where the import stands, and the rows of its "Imported from" settings table in the board's order (Source, Auto-sync, Prune, Self-heal, Sync waves, Hooks, ignoreDifferences, then the rest), each saying how Wardn carries the settin

GET
/deployments/{deploymentId}/import
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

deploymentId*string
Formatuuid

Response Body

The deployment's import.

application/json
  1. response

What a deployment was imported from, and how its tool's settings carry over.

deploymentId*string
Formatuuid
tool*ImportToolKind
Value in"argocd""flux"
state*ImportState

Where an imported deployment stands. observing renders and compares while the tool keeps applying; cutting_over is taking over from the tool; cut_over is applied by Wardn alone; released was handed back to the tool.

Value in"observing""cutting_over""cut_over""released"
source*
sourceLine*string

The object as the import list showed it, such as "Application argocd/storefront".

generator*|

The ApplicationSet that generated the Application, or null.

scannedClusterId*string

The cluster whose scan found it.

Formatuuid
candidateKey*string
importedAt*string
Formatdate-time
importedBy*string

The user id of who imported it.

settings*array<>

The rows of the "Imported from" table, in the board's order.

driftAfterCutover*string

What the tool did about drift. The deployment only detects drift while it observes; cutover turns this on.

Value in"detect""revert_after""revert"
ignoreRulesAfterFirstRender*integer

The tool's ignore rules that name no object of the latest render, so none of Wardn's drift ignore rules came of them; before the first render, all of them.

renamedFrom*string

The name the tool gave it when a name in use made Wardn choose another; empty when there was none.

observation?

How the comparison of an imported deployment's render with what Argo CD or Flux applied stands. The result of the latest check stays while the next is under way.

Example Request
curl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/import'
Example Response
{  "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",  "tool": "argocd",  "state": "observing",  "source": {    "kind": "string",    "namespace": "string",    "name": "string"  },  "sourceLine": "string",  "generator": {    "kind": "string",    "namespace": "string",    "name": "string"  },  "scannedClusterId": "9cd540a2-dae7-4642-b854-468638ecabb1",  "candidateKey": "string",  "importedAt": "2019-08-24T14:15:22Z",  "importedBy": "string",  "settings": [    {      "key": "string",      "label": "string",      "value": "string",      "display": "string",      "flag": "none",      "reason": "string",      "pending": true    }  ],  "driftAfterCutover": "detect",  "ignoreRulesAfterFirstRender": 0,  "renamedFrom": "string",  "observation": {    "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861",    "snapshotSha": "string",    "current": true,    "state": "pending",    "outcome": "ok",    "message": "string",    "checkedAt": "2019-08-24T14:15:22Z",    "requestedAt": "2019-08-24T14:15:22Z",    "counts": {      "same": 0,      "open": 0,      "accepted": 0,      "expected": 0,      "ignored": 0    },    "ready": true,    "blockers": [      "not_checked"    ],    "inventorySource": "tool_status",    "truncated": true,    "denied": {      "verb": "string",      "group": "string",      "resource": "string",      "namespace": "string",      "user": "string"    },    "serviceAccountNamespace": "string",    "serviceAccountName": "string",    "intervalSeconds": 0  }}