pub fn validate_backup_deletion_policy(
origin: Origin,
policy: Option<DeletionPolicy>,
) -> ValidationResultExpand description
A Snapshot’s deletionPolicy is legal for its origin (ADR §4.5).
origin: discovered forces Retain: None (defaults to Retain) and an
explicit Retain pass; Delete/Orphan are rejected. discovered’s
underlying kopia snapshot was never created by the operator, so it must
never be the thing that deletes it. adopted is the one exception: an
adopted row was deliberately re-attached to a SnapshotPolicy precisely so
GFS retention (and any deletionPolicy) governs it like a produced backup —
any policy is allowed. scheduled/manual are unchanged (any policy).