Take an app out of a deployment
The deployment's next snapshot no longer holds the app's objects, and an apply that prunes removes them from the cluster. The last app of a deployment cannot be taken out; delete the deployment instead.
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
deploymentId*stringuuidappId*stringuuidIdempotency-Key?stringMakes 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.
^[A-Za-z0-9_.:-]+$1 <= length <= 255The deployment without the app.
application/json- response
A namespace on a cluster, or on the clusters of an environment, holding one or more apps.
id*stringuuidname*stringapps*array<>The apps the deployment holds, in its order. A deployment holds at least one.
state*The state a list shows for each deployment, so it needs no request per row.
targetKind*DeploymentTargetKind"cluster""environment"clusterId*|uuidenvironmentId*|uuidtargetName*stringThe name of the cluster or environment.
namespace*stringarrival*DeploymentArrivalHow new snapshots arrive: branch takes one on each push to a branch (Automatic), request takes one only when asked or when a pipeline promotes one in.
"branch""request"branch*stringThe branch tracked. Empty unless arrival is branch.
prune*|The deployment's own choice. Null follows the organization's default.
pruneEffective*booleanWhat applies now.
observe*booleanAn observing deployment renders and compares but is never applied.
previewOf*|The deployment this one previews a pull request of. Null for a deployment that is not a preview.
import?What a deployment was imported from, as lists show it ("Imported from Argo CD"). Absent for a deployment made in Wardn.
owners*array<string>User ids of the deployment's owners, oldest first.
createdAt*stringdate-timeupdatedAt*stringdate-timecurl -X DELETE 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/apps/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "apps": [ { "appId": "28c365d5-df94-4a54-8217-3ce51d068868", "name": "string", "sourceId": "797f5a94-3689-4ac8-82fd-d749511ea2b2", "sourceName": "string", "sourceKind": "git", "sourceUrl": "string", "sourcePath": "string", "renderType": "helm", "position": 0, "branch": "string", "trackedBranch": "string", "values": {}, "revision": { "running": { "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861", "commit": "string", "branch": "string", "prNumber": 0 }, "latest": { "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861", "commit": "string", "branch": "string", "prNumber": 0 }, "renderStatus": "rendered", "lastSeenCommit": "string" }, "summary": { "health": "healthy", "podsReady": 0, "podsTotal": 0, "resources": 0, "jobs": 0, "restarts24h": 0 } } ], "state": { "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861", "snapshotContentId": "string", "snapshotBrief": { "contentId": "string", "origin": "sync", "commitSubject": "string", "commitAuthor": "string", "committedAt": "2019-08-24T14:15:22Z", "change": { "kind": "image", "app": "string", "from": "string", "to": "string" }, "apps": [ { "appId": "28c365d5-df94-4a54-8217-3ce51d068868", "name": "string", "sourceRepo": "string", "sourcePath": "string", "renderType": "string", "commit": "string", "branch": "string", "branchProtected": true, "prNumber": 0, "pusher": "string", "commitSubject": "string", "commitAuthor": "string", "committedAt": "2019-08-24T14:15:22Z", "refKind": "branch", "refName": "string", "commitsSince": 0, "commitRange": [ { "sha": "string", "subject": "string", "author": "string" } ] } ] }, "sync": "synced", "health": "healthy", "drift": { "status": "none", "count": 0 }, "appsHealthy": 0 }, "targetKind": "cluster", "clusterId": "a3d24843-7014-4490-bdd3-b7cb39b400c8", "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563", "targetName": "string", "namespace": "string", "arrival": "branch", "branch": "string", "prune": true, "pruneEffective": true, "observe": true, "previewOf": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "visible": true }, "import": { "tool": "argocd", "state": "observing", "source": { "kind": "string", "namespace": "string", "name": "string" }, "generator": { "kind": "string", "namespace": "string", "name": "string" }, "cutover": { "state": "awaiting_approval", "trigger": "person", "releasable": true, "releasedAt": "2019-08-24T14:15:22Z" } }, "owners": [ "string" ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}Add an app to a deployment POST
The app goes after the apps the deployment holds. Takes the right to manage the deployment and to see the app. A deployment that tracks branches watches the app's branch from now on, so its next render holds the app. A deployment that takes snapshots from another, or that others take snapshots from,
Replace the branch and values of an app of a deployment PUT
The next render uses them. A branch of the app's own is only for a deployment that tracks branches; empty follows the deployment's.