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
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
deploymentId*stringuuidThe deployment's import.
application/json- response
What a deployment was imported from, and how its tool's settings carry over.
deploymentId*stringuuidtool*ImportToolKind"argocd""flux"state*ImportStateWhere 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.
"observing""cutting_over""cut_over""released"source*sourceLine*stringThe object as the import list showed it, such as "Application argocd/storefront".
generator*|The ApplicationSet that generated the Application, or null.
scannedClusterId*stringThe cluster whose scan found it.
uuidcandidateKey*stringimportedAt*stringdate-timeimportedBy*stringThe user id of who imported it.
settings*array<>The rows of the "Imported from" table, in the board's order.
driftAfterCutover*stringWhat the tool did about drift. The deployment only detects drift while it observes; cutover turns this on.
"detect""revert_after""revert"ignoreRulesAfterFirstRender*integerThe 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*stringThe 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.
curl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/import'{ "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 }}List a deployment's state over time GET
The periods the deployment's state held that overlap the time range, oldest first. A period that is still current has no `endedAt`.
Compare an imported deployment with its cluster again POST
Asks the cluster's operator to compare what Argo CD or Flux applied with Wardn's render again, as Refresh does: the snapshot the deployment wants, or `snapshotId`, another of its snapshots someone picked. A check already due or under way answers the request, and so does one asked for less than 10 se