Deployments
Preview

Release an imported deployment back

Hands the deployment back to Argo CD or Flux: an attempt that wrote nothing is cancelled at once, with its approval request closed; one that wrote is undone by its workflow (`state` releasing, then released) and the deployment observes again. Those who may cut it over may, and so may the person who

POST
/deployments/{deploymentId}/import/cutover/release
cookiebetter-auth.session_token<token>

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

deploymentId*string
Formatuuid
Idempotency-Key?string

Makes retries safe. A repeated key with the same request returns the first result and sets Idempotent-Replayed: true. The same key with a different request answers 409 idempotency.key_reused, and while the first request is still running 409 idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack of sign-in or permission are not kept, so a retry runs again.

Match^[A-Za-z0-9_.:-]+$
Length1 <= length <= 255

Response Body

The attempt, cancelled or releasing.

application/json
  1. response

One attempt to cut an imported deployment over.

id*string
Formatuuid
state*ImportCutoverState

Where one cutover attempt stands. awaiting_approval waits for the approvals the guardrails ask for; queued is approved or allowed; running is at steps 1 to 4; waiting_on_parent waits for a parent app to let the tool's object go; waiting is blocked (wait says why); interrupted found the tool turned back on after Wardn wrote; removing is removing the tool's object, the point of no return; verifying checks every object survived; done is Wardn's; releasing is being undone, then released; failed and cancelled ended unfinished.

Value in"awaiting_approval""queued""running""waiting_on_parent""waiting""interrupted""removing""verifying""done""releasing""released""failed""cancelled"
trigger*string
Value in"person""automatic"
requestedBy*
requestedAt*string
Formatdate-time
startedAt?string

When step 1 started; absent before.

Formatdate-time
step*integer

The step the card's "Step N of 4" names, the last done or under way; 0 before step 1.

Range0 <= value <= 4
steps*array<>
Items4 <= items <= 4
wait?

Why an attempt waits. Names and codes only.

interruption?

What stopped an attempt after Wardn wrote. Names only.

approval?

The approval an attempt needed and how it was decided.

releasable*boolean

Release back is offered now.

retriable*boolean

Cut over again is offered now.

pastPointOfNoReturn*boolean

The tool's object is being removed or was removed, so it cannot be released back.

removedAt?string

When the removal of the tool's object was sent.

Formatdate-time
failure?
releaseRequestedBy?
releaseRequestedAt?string
Formatdate-time
releasedAt?string

When it was released back; absent unless it was.

Formatdate-time
endedAt?string
Formatdate-time
snapshotId*string

The cutover snapshot, which is approved and applied.

Formatuuid
baseSnapshotId*string

The render reviewed, which the cutover snapshot was made from.

Formatuuid
snapshotSha*string

The commit the render was made from, in full; empty when unknown.

tool*ImportToolKind
Value in"argocd""flux"
source*
counts*

The differences a cutover was reviewed with, by where their review stood.

imagesKept*integer
contentNotResynced*boolean

Released back, the tool has its object again but will not apply its own content by itself (Argo CD without automated sync and self-heal, a Kustomization suspended before the cutover): the content stays Wardn's render until the tool's next sync, a new commit or a sync someone starts.

leftAlone*array<string>

What undoing it left as it was, since someone changed it after Wardn did or it was not Wardn's to delete: objects as group/kind/namespace/name, fields as that and a pointer.

inventoryUnreadable*integer

Objects the tool manages that the cluster's operator could not read when it stopped the tool (outside the namespace, of a kind it may not read): they are not taken over and cannot be checked to survive the removal.

Example Request
curl -X POST 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/import/cutover/release'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "state": "awaiting_approval",  "trigger": "person",  "requestedBy": {    "id": "string",    "name": "string"  },  "requestedAt": "2019-08-24T14:15:22Z",  "startedAt": "2019-08-24T14:15:22Z",  "step": 0,  "steps": [    {      "n": 1,      "title": "string",      "label": "string",      "status": "pending",      "note": "",      "noteText": "string",      "startedAt": "2019-08-24T14:15:22Z",      "endedAt": "2019-08-24T14:15:22Z"    },    {      "n": 1,      "title": "string",      "label": "string",      "status": "pending",      "note": "",      "noteText": "string",      "startedAt": "2019-08-24T14:15:22Z",      "endedAt": "2019-08-24T14:15:22Z"    },    {      "n": 1,      "title": "string",      "label": "string",      "status": "pending",      "note": "",      "noteText": "string",      "startedAt": "2019-08-24T14:15:22Z",      "endedAt": "2019-08-24T14:15:22Z"    },    {      "n": 1,      "title": "string",      "label": "string",      "status": "pending",      "note": "",      "noteText": "string",      "startedAt": "2019-08-24T14:15:22Z",      "endedAt": "2019-08-24T14:15:22Z"    }  ],  "wait": {    "reason": "parent",    "words": "string",    "parent": {      "kind": "string",      "namespace": "string",      "name": "string"    },    "version": "string",    "code": "string"  },  "interruption": {    "what": "string",    "by": "string",    "at": "2019-08-24T14:15:22Z",    "turnedBackOn": true  },  "approval": {    "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",    "state": "open",    "setBy": "string",    "approvers": [      "string"    ],    "decision": "approve",    "decidedBy": {      "id": "string",      "name": "string"    },    "decidedAt": "2019-08-24T14:15:22Z"  },  "releasable": true,  "retriable": true,  "pastPointOfNoReturn": true,  "removedAt": "2019-08-24T14:15:22Z",  "failure": {    "code": "string",    "message": "string"  },  "releaseRequestedBy": {    "id": "string",    "name": "string"  },  "releaseRequestedAt": "2019-08-24T14:15:22Z",  "releasedAt": "2019-08-24T14:15:22Z",  "endedAt": "2019-08-24T14:15:22Z",  "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861",  "baseSnapshotId": "50c8a023-0702-481c-b991-7f02a2c9d036",  "snapshotSha": "string",  "tool": "argocd",  "source": {    "kind": "string",    "namespace": "string",    "name": "string"  },  "counts": {    "accepted": 0,    "open": 0,    "expected": 0,    "markers": 0,    "autoscaled": 0,    "images": 0,    "hooks": 0  },  "imagesKept": 0,  "contentNotResynced": true,  "leftAlone": [    "string"  ],  "inventoryUnreadable": 0}