Propose taking drifted values into Git
Records a pending change that makes the object in the snapshot equal to what the cluster runs, as the exact RFC 6902 patch against the object in the snapshot. Wardn does not push it. Secrets cannot be adopted because their values are masked.
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
deploymentId*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 <= 255application/json- body
clusterId?stringNeeded only when the deployment drifts on more than one cluster.
uuidobject*pointers?array<string>Limit the adoption to these fields; leave out for every drifted field of the object.
The pending adoption.
application/json- response
id*stringuuiddeploymentId*stringuuidclusterId*stringuuidsnapshotId*stringThe snapshot whose object the patch applies to.
uuidbaseDigest*stringsha256 of that object, so the patch is not applied to something else.
object*patch*array<>state*string"pending""merged""dismissed"createdBy*stringcreatedAt*stringdate-timedecidedBy?stringdecidedAt?stringdate-timecurl -X POST 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/drift/adopt' \ -H 'Content-Type: application/json' \ -d '{ "object": { "group": "string", "version": "string", "kind": "string", "namespace": "string", "name": "string" }}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2", "clusterId": "a3d24843-7014-4490-bdd3-b7cb39b400c8", "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861", "baseDigest": "string", "object": { "group": "string", "version": "string", "kind": "string", "namespace": "string", "name": "string" }, "patch": [ { "op": "add", "path": "string", "value": null } ], "state": "pending", "createdBy": "string", "createdAt": "2019-08-24T14:15:22Z", "decidedBy": "string", "decidedAt": "2019-08-24T14:15:22Z"}Render the deployment's commit again POST
Queues a new render of the commit each of the deployment's git apps was last seen at, as a job of its own, for when a render failed for good. A render that succeeds makes a snapshot that is delivered like any other. Answers 409 for a deployment that does not render from a branch. Writes an Activity
List the changes proposed to adopt drift GET
The deployment's adoptions, newest first, up to 200.