Reject a held prune
Leaves the objects where they are. The next apply holds the same prune again if the snapshot still drops them.
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
deploymentId*stringuuidheldPruneId*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 held prune, as decided.
application/json- response
id*stringuuiddeploymentId*stringuuidclusterId*stringuuidsnapshotId*stringuuidreason*stringobjects*array<>What the prune would have removed.
state*stringSuperseded means a later apply on the cluster closed it.
"held""approved""rejected""superseded"heldAt*stringdate-timedecidedBy?stringdecidedAt?stringdate-timecurl -X POST 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/held-prunes/497f6eca-6276-4993-bfeb-53cbbbba6f08/reject'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2", "clusterId": "a3d24843-7014-4490-bdd3-b7cb39b400c8", "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861", "reason": "string", "objects": [ { "group": "string", "version": "string", "kind": "string", "namespace": "string", "name": "string" } ], "state": "held", "heldAt": "2019-08-24T14:15:22Z", "decidedBy": "string", "decidedAt": "2019-08-24T14:15:22Z"}Approve a held prune POST
Sends the same snapshot to the cluster again with the hold lifted, once, so the objects it dropped are removed. A prune that is no longer waiting is a conflict.
Get what differs from the snapshot a deployment runs GET
The objects, and the fields of each, that the operator last found different from what Wardn applied, on each cluster the deployment runs on. Only fields Wardn owns count: a field another controller owns, such as an autoscaler's replica count, is never drift. An empty list means no drift.