Held snapshots
Why a render is held instead of applied, what happens to the deployment meanwhile, and how to release or discard the snapshot.
Git makes it easy to push a commit that quietly empties a deployment: a path that moved, a template condition that flipped, a rename that changes every object's name. Applying a snapshot with pruning would then delete real workloads. Wardn's render guard looks at every new snapshot before anything reaches a cluster, and holds the ones that look like that. A held snapshot is kept and shown, nothing is applied, and a person decides. This page explains what is held and how to decide. Sync and arrival places it in the whole flow; for prunes held during an apply, see Deployment settings.
What the guard holds
When a deployment renders a new snapshot, the guard compares its objects with those of the deployment's newest approved snapshot: the newest one that was never held, or that was held and then released. A held or discarded snapshot is never the one compared against. Objects are compared by kind, namespace and name. A snapshot is held when:
| Reason | API value | When |
|---|---|---|
| The render has no objects | empty | It produced nothing at all. This includes the first snapshot of a deployment. |
| The render removes most of the current objects | mass_removal | It lacks more than half of the objects the current snapshot has. Exactly half is allowed. |
The 50% threshold is fixed in this release. A deployment with no snapshot yet has nothing to compare with, so only an empty render is held.
Typical causes:
- The app's Path points at a directory that has been moved or renamed, so a plain-manifest app finds no files.
- A Helm value or template condition switches most of a chart off.
- A rename changes the name of most objects. Renaming a Helm app changes
.Release.Name, and a KustomizenamePrefixchanges every name; from Wardn's view the old objects are gone and new ones appear. - A merge or revert deletes a manifests directory.
What happens to a held snapshot
- The snapshot is rendered and stored, with its commit, so you can open it and see exactly what it holds.
- It is not applied, and the deployment does not change what it wants. It keeps running its current snapshot.
- An entry
snapshot.heldis written to Activity with the reason, the commit and the counts: the objects before, the objects after and how many would be removed. - A later push renders a new snapshot, which is compared with the newest approved snapshot again, not with the held one. If the next commit is fine, it applies normally and the held snapshot stays held until someone decides about it.
A held snapshot cannot be restored later: restore refuses a snapshot that was held or discarded.
Release or discard it
You decide on the snapshot's page. You need the snapshot:signoff permission.
Open the deployment, then the Snapshots tab (Snapshot history), and open the entry marked Held for review. A panel at the top gives the reason (The render has no objects, or The render removes most of the current objects), the message, and the count: the current snapshot holds N objects, this one M, so K would be removed. Choose:
- Release to approve it. The deployment then wants this snapshot and it is applied like any other, including the usual waves, jobs and prune rules.
- Discard to refuse it for good. The deployment keeps running what it runs. The panel then shows who decided and when.
Without the permission both buttons are disabled with the hint Needs the snapshot:signoff permission.
snapshot:signoff is a duty permission: it is held by the people designated for it, not by seniority. The Owner holds it; the Admin role does not by default. Give it to the people who should approve through a role and a grant (Roles and grants). A person with a team role that holds it may sign off for the deployments in reach of that grant. The same duty decides who may sign off a snapshot in a pipeline stage, a separate decision from releasing a held snapshot.
Held, observing and guarded deployments
- A deployment that only observes still renders and holds snapshots, so you can see what would happen. Releasing one does not apply it, because nothing is applied while observing.
- A snapshot that the guard did not hold can still be stopped by a guardrail, for example a production environment that takes snapshots only from a protected branch. That is a separate decision with its own page, and it appears separately in Activity.
Held snapshots, held prunes
Two different holds protect against the same kind of mistake at different moments:
| Held snapshot | Held prune | |
|---|---|---|
| When | Before the apply, at render time | During the apply, at the delete step |
| Compares | The new snapshot with the newest approved one | What the apply would delete with what the deployment had |
| Threshold | Fixed at 50% | Prune at most, default 50% |
| Decided with | Release or Discard, snapshot:signoff | Approve prune or Reject, deployment:sync |
A snapshot that drops up to half of the objects passes the render guard. If pruning is on and you set Prune at most below 50%, the apply can still stop at the delete step. See Deployment settings.
Next
Deployment settings
Prune, the prune limit and the other delivery settings.
Restore and rollback
Go back to an earlier snapshot that applied.
Compare snapshots
See what a held snapshot would change before you decide.
Related: Snapshots, Sync and arrival, Guardrails.
Deployment settings
Every setting of a deployment, where it runs, how snapshots arrive, observe only, pruning and the prune limit, the drift policy, and how to change them.
Jobs and waves
The order Wardn applies objects in, how to run a migration or smoke test before or after an apply, and what a failure, a timeout or a rollback does.