## What this PR does
Closes#5291. Two paths left a MariaDB dump and its
`k8s.mariadb.com/Backup` behind after the dump cleanup from #5233.
**A run that never completes.** When the operator Backup stays short of
`Complete` past `mariadbDefaultBackupDeadline`, the BackupJob now
deletes it (background propagation, so its Job goes too) before it marks
itself `Failed`, and says so in the failure message. No Cozystack
`Backup` is ever made of such a run, so nothing else deleted it, and
while it stood its window had no end: `contestedMariaDBDump` counted it
as a possible writer of every later dump of the application, and every
later `Backup` was released with `ArtifactNotDeleted`. Deleting the Job
also stops a run that is still going from uploading a dump nobody
tracks. An operator Backup that is `Complete=True` on a reason the
driver does not know has a bounded window and is kept, as before.
The decision is made on the operator Backup read from the API server,
not the cache. A run the operator has just marked complete or failed
goes down the normal path and is not deleted. The delete carries the UID
and resourceVersion that were read, so a run that completes between the
read and the delete is not deleted either. Past the deadline no new run
is created, so a pass that deleted the run and then failed to persist
`Failed` does not start another one on retry. A delete the API server
keeps refusing shows as `Ready=False/OperatorBackupDeleteFailed` on the
BackupJob. The delete also removes the run's pod, so before it the
controller copies what held the pod up into the failure message: an
unschedulable pod, or a container that is waiting or has failed.
The MariaDB driver's other failure exits take the same path: the MariaDB
application was deleted, the MariaDB CR never came back, the strategy
disappeared past its deadline, the strategy no longer renders, the
applicationRef is rejected, or the run could not be created. Past the
deadline, the run is taken from the API server listing and
`ensureMariaDBBackup` is not called, so a cache that has not seen the
run cannot cause a second one to be created. mariadb-operator leaves the
run of a MariaDB that went away at `Complete=False` for good, so if the
application was later recreated under the same name, that run used to
contest every later dump.
The deadline is still 30 minutes from `StartedAt`, but a dump that is
still running at that point is now stopped instead of being left to
finish outside Cozystack.
**Namespace teardown.** mariadb-operator puts no finalizer on its
`Backup`, so during teardown it is usually gone before the Cozystack
`Backup` finalizer runs. When the operator Backup is not found, the
cleanup now:
- takes bucket, prefix and Secret references from the snapshot in
`status.underlyingResources`;
- goes on only for a recorded dump (`k8s.mariadb.com/dump-file`) on the
platform bucket written with the projected platform Secret, reached with
the platform credentials, which do not depend on the namespace;
- keeps the dump, with a `Warning ArtifactNotDeleted`, when another
operator Backup, finished or not, could have written it (the same
`contestedMariaDBDump` check as before);
- retries a failed delete through `retryMariaDBCleanup`, which releases
the `Backup` once the namespace is terminating.
The snapshot and the storage URI now record the storage the run was
created with, whatever its kind, rather than the strategy as rendered
when the run completed. A strategy edited during a run therefore cannot
send the cleanup to the wrong place. The BackupJob looks for its run on
the API server rather than in the cache, so a retry after a failed
status write never starts a second run. A `Running` BackupJob never
starts a run at all, and if its run is gone the job is failed.
A `Backup` with no recorded dump, no snapshot, a dump on another bucket
or written with the tenant's own Secret, or unreadable platform
credentials is released with a `Warning`, as before. A missing operator
CRD keeps the old release path.
The platform-bucket check that `mariadbCleanupConnection` used is now
`mariadbPlatformConnection`, shared by both paths. Its behaviour is
unchanged.
Not covered:
- Operator Backups left behind by BackupJobs that failed before this
change are still there, because terminal BackupJobs are not reconciled
again. Deleting them by hand releases the dumps they hold.
- Deleting a BackupJob that is still running leaves its operator Backup,
which has no ownerRef and no finalizer. This was already the case and is
not addressed here.
- The driver-independent terminal exits in `backupjob_controller.go`
(BackupClass resolution, credentials projection) still fail a BackupJob
without looking at a MariaDB run.
- A run that is stopped at the deadline after it has uploaded its dump
leaves that dump untracked. No `Backup` is ever made of such a run. The
other fail-safe cases listed in the issue (a `Restore` that never
completes, the single `Backup` worker, non-204 DELETE responses,
endpoint moves) are not addressed here.
Tests: `go test ./internal/backupcontroller/...`. The deadline outcome
table now also checks whether the operator Backup was deleted. New
cleanup tests cover a missing operator Backup: the dump deleted with the
platform credentials, already absent, contested by an unfinished run, a
failed delete held for retry, and each case it cannot reach (volume
storage, a recorded name that is not a dump, a snapshot of another
kind). Deadline tests cover a retry after a failed status write, a cache
that trails a completed run or misses a new one, a delete conditional on
the run that was read, a refused delete, and the application or MariaDB
going away mid-run.
### Screenshots
N/A, no UI changes.
### Downstream repositories
I checked the trigger map in `docs/agents/contributing.md` against the
diff. The diff touches `internal/backupcontroller/mariadbstrategy_*.go`
and their tests. It also adds a message helper in
`internal/backupcontroller/backupjob_controller.go` and changes comments
in `internal/backupcontroller/backup_controller.go` and
`packages/system/backupstrategy-controller/templates/rbac.yaml`. No
values, schemas, CRDs, RBAC rules, annotations or telemetry change.
- [x] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[cozystack/ansible-cozystack](https://github.com/cozystack/ansible-cozystack)
- follow-up:
- [ ] [cozystack/ccp](https://github.com/cozystack/ccp) - follow-up:
- [ ] [cozystack/talm](https://github.com/cozystack/talm) - follow-up:
- [ ] [cozystack/cozyhr](https://github.com/cozystack/cozyhr) -
follow-up:
- [ ] [cozystack/cozy-proxy](https://github.com/cozystack/cozy-proxy) -
follow-up:
- [ ]
[cozystack/cozystack-telemetry-server](https://github.com/cozystack/cozystack-telemetry-server)
- follow-up:
- [ ]
[cozystack/external-apps-example](https://github.com/cozystack/external-apps-example)
- follow-up:
- [ ] [cozystack/examples](https://github.com/cozystack/examples) -
follow-up:
- [ ] [cozystack/community](https://github.com/cozystack/community) -
follow-up:
### Release note
```release-note
fix(backups): MariaDB dumps are no longer left in the bucket when a backup run never completes or when a tenant namespace is deleted. A BackupJob that times out now deletes the operator Backup it gave up on, so that run no longer blocks the deletion of later dumps. A Backup whose operator Backup is already gone now deletes its recorded dump from the platform bucket using the platform credentials. A MariaDB backup run that has not completed 30 minutes after its BackupJob started is now stopped.
```
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **Bug Fixes**
* MariaDB backup cleanup now removes a recorded dump from the platform
bucket when its operator Backup is already gone, while leaving contested
or insufficiently verified dumps untouched.
* Failed dump deletions are retried, and cleanup reports when a dump is
already absent.
* Backup jobs are less likely to start duplicate runs during retries,
and completed backups retain the storage configuration used by their
run.
* Failure handling preserves completed runs and includes operator-run
completion details when available.
* Backup jobs now recheck the operator Backup before failing on a
deadline, helping account for runs that completed or failed in the
meantime.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
The retry backoff of the failed-job sweep only set RequeueAfter. Writing the
retry counter onto the BackupJob triggers a reconcile at once, since the
BackupJob watch has no predicate. When Velero processes a request instantly,
as it does when the backup storage location is missing or read-only, that
reconcile replaced the request again, emitted another event and raised the
counter without any wait. The sweep now records when it last created a
request, in the backups.cozystack.io/velero-deletion-attempted-at annotation,
and replaces a processed request only after the backoff for the current
count has passed since then. Before that, it requeues for the remaining
time.
A request Velero never processes, because Velero is down, and a Velero
backup stuck in New or with no phase were checked at a fixed interval,
each check with an uncached list of Backups. They are now checked again
after as long as they have already waited, from the request's or the
backup's creation time, capped at one hour. Waiting emits no event.
Recording the attempt can fail after the request was created. If the job
was deleted meanwhile, the sweep ends without an error. Any other error is
logged and the computed requeue is kept, because failing the reconcile
would only retry sooner.
Unit tests drive the clock through two back-to-back reconciles of an
instantly processed request (one replacement, one event), then three
retries at 10, 20 and 40 minutes. They also check the waiting intervals for
requests and backups of different ages, and both annotation write errors.
Refs: #5355
Assisted-by: LLM
Signed-off-by: Andrey Kolkov <androndo@gmail.com>
Velero marks a backup Deleting before it removes the data and leaves it in
that phase when removing the data fails, with the deletion request
processed with errors. The failed-job sweep skipped Deleting backups and
did not requeue for them, so their data stayed in the bucket until
Velero's TTL. Deleting backups now go through the same request path: a
pending request is left alone, and a processed one of ours is replaced.
A request of ours that Velero processed without errors is also replaced
when the backup still exists, for example after the BSL sync brought it
back. Otherwise the request name blocked a new attempt until Velero
garbage-collects processed requests a day later.
When Velero can never carry out the deletion, because the backup storage
location is missing, read-only or unavailable, the sweep replaced the
request every 5 minutes without any sign of it. Each replacement now
emits a VeleroBackupDeletionFailed Warning event on the BackupJob with
Velero's status.errors, and doubles the requeue interval from 5 minutes
up to 1 hour. The count is kept in the
backups.cozystack.io/velero-deletion-retries annotation, because the
replaced request is gone and a requeue carries no state. The
controller's ClusterRole already allows patching BackupJobs.
Unit tests cover a Deleting backup with a pending request and with an
errored one, a cleanly processed request whose backup still exists, an
errored request under a foreign name that is left alone, three
consecutive failed deletions (three events, 10m, 20m and 40m requeues,
the 1h cap), and a cluster without the Velero CRDs.
Refs: #5355
Assisted-by: LLM
Signed-off-by: Andrey Kolkov <androndo@gmail.com>
When a Velero strategy run ended Failed or PartiallyFailed, no Backup was
created, and the Backup finalizer was the only code that asked Velero to
delete backup data. The failed backup.velero.io object, labelled for the
BackupJob but not owned by it, stayed in the bucket with its partial
resources and logs until Velero's TTL (720h by default) expired it, and
deleting the BackupJob did not remove it.
The strategy now requests the deletion through a DeleteBackupRequest before
it marks the job Failed, and the failure message is still read from the
Velero backup first. A direct delete is not enough, because the BSL sync
recreates the object from the object store. A reconcile of a Failed
BackupJob, which used to return at once, now requests deletion of every
Velero backup still labelled for the job. That retries a request that could
not be created and removes backups that earlier versions leaked, after an
upgrade. A Velero backup that a Backup references (the job failed after its
Backup was created) is left alone, and one still running is polled until
Velero accepts a request for it. The sweep matches on the job labels, so it
also covers the Velero backup of a failed Kubernetes strategy run.
The request is named after the Velero backup, and the Backup finalizer uses
the same helper, so repeated reconciles converge on one request. Nothing is
created while another request for the backup is pending. A request that
Velero processed with errors is replaced, because Velero keeps it for a day
and its name would block the retry until then. A job with more than one
Velero backup now fails with a message that names them, not with an empty
one.
Fake-client unit tests cover Failed and PartiallyFailed runs, a repeated
reconcile, leftovers of already Failed jobs (no request, a pending request,
a request processed with errors, a Backup-referenced backup, a running
backup) and the unchanged Succeeded path.
Closes: #5355
Assisted-by: LLM
Signed-off-by: Andrey Kolkov <androndo@gmail.com>
A k8s.mariadb.com/Backup the BackupJob gave up on stayed for good: no
Backup is made of such a run, so nothing deleted it, and while it stood
short of Complete the dump cleanup counted its open window as a possible
writer of every later dump of the application and kept each of them.
Every failure exit of a started BackupJob in the MariaDB driver now goes
through failMariaDBBackupJob: the deadline, the application, MariaDB CR
or strategy going away, a run the operator failed at Complete=False, and
a run that could not be created. It lists the job's runs on the API
server, where the cache can trail a run created or completed a moment
ago, and deletes each one short of Complete under the UID and
resourceVersion it read, so a run that completes in between is handed
to the success path instead. Deleting the run takes its Job and pod, so
what held the pod up is first copied into the failure message. A
Running or expired job takes its run from that listing and never starts
another, so a retry after a failed status write cannot start a second.
During namespace teardown the operator Backup, which carries no
finalizer, is usually gone before the Backup finalizer runs, and the
cleanup, which read the storage from it, left the dump behind. A Backup
that recorded its dump on the platform bucket now has it deleted with
the platform credentials, which do not go with the namespace, reading
the storage from the snapshot in status.underlyingResources; the dump is
still kept when another run could have written it. The snapshot and the
storage URI now record the storage the run was created with rather than
the strategy as rendered at completion, which a strategy edited during
the run would otherwise send the cleanup away from.
Closes: #5291
Assisted-by: LLM
Signed-off-by: Andrey Kolkov <androndo@gmail.com>
Before deleting a dump the cleanup checks every other operator Backup
on the same prefix that could have written it, and it read them from
the informer cache. A run whose operator Backup had not reached the
cache yet but had already uploaded its dump was missed, and its dump
deleted as this Backup's. Both the recorded and the legacy paths now
list the runs from the API server, as the restore checks already do.
Assisted-by: LLM
Signed-off-by: Alexey Artamonov <aleksei.artamonov@aenix.io>
The reader's comment named only RestoreJobs, and the restore path said
the cleanup holds a Backup only for RestoreJobs it can see, while the
cleanup now lists both RestoreJobs and operator Restores straight from
the API server.
Assisted-by: LLM
Signed-off-by: Alexey Artamonov <aleksei.artamonov@aenix.io>
The comment on who deletes a MariaDB Backup listed namespace teardown
without saying that teardown can remove the operator Backup first, in
which case the dump is left behind with a Warning, so it promised a
delete the code does not make. The remover contract claimed a missing
key is never an error, which holds only for a backend that answers the
delete with 204, the one status minio-go accepts.
Assisted-by: LLM
Signed-off-by: Alexey Artamonov <aleksei.artamonov@aenix.io>
A MariaDB restore now checks on the API server that its Backup is not
being deleted before it starts, so a restore that started first exists
on the API server before the delete. The cleanup read RestoreJobs from
the informer cache, which can lag behind, and could delete the dump
under a restore it had not seen yet. Reading them uncached closes that
window from both sides.
Assisted-by: LLM
Signed-off-by: Alexey Artamonov <aleksei.artamonov@aenix.io>
A tenant Kubernetes application had no backup route in cozy-default, and
none of the existing strategies fits it. Its API state is a key prefix in
the etcd DataStore the whole tenant shares, so the Etcd strategy's snapshot
would roll every tenant cluster back at once; its control-plane CA, service
account key and Talos secrets cannot be regenerated without breaking every
node and credential issued under them; and its PersistentVolumes are
DataVolumes in the tenant namespace that the application's own deletion
removes.
The new Kubernetes strategy backs up the cluster's etcd prefix with a Job
that authenticates with the cluster's own datastore certificate, and the PKI
Secrets and data DataVolumes with Velero. The HelmReleases of the cluster
and its node pools are recorded on the Backup rather than in Velero,
because a label selector for them would also pick up the worker system
disks. A backup warns when a CA would expire before the backup does.
A restore rebuilds a deleted cluster under its old CA, or rolls a live one
back after stopping its control plane and workers, and lets the etcd
prefix and the volumes be restored separately.
Signed-off-by: Andrey Kolkov <androndo@gmail.com>
Assisted-by: LLM
The comment justified deleting a dump in a tenant's own bucket by the
tenant asking for it, but tenant roles grant no delete on Backups: only
an administrator or the namespace teardown deletes one, and the reader
of this branch should know whose request the delete answers.
Assisted-by: LLM
Signed-off-by: Alexey Artamonov <aleksei.artamonov@aenix.io>
Deleting a MariaDB Backup left its dump in the bucket for good:
mariadb-operator's maxRetention prunes only from inside the next run of
the same prefix, and a Plan never deletes a Backup, so on the platform
bucket nothing else ever removes it.
Every run of an application writes under one prefix, so the key deleted
has to be proven to be this Backup's. It is the dump the Backup records,
or, for a Backup taken before dumps were recorded, the one the existing
ownership match attributes to its operator Backup. That match is
recorded on the Backup before the delete, so a retry deletes the same
key by name instead of matching again against a bucket that no longer
holds it. Without proof the Backup is released with a Warning and
nothing is deleted, the operator Backup included, since any later
attribution starts from it. The operator Backup is deleted only after
its dump, and the delete waits while a RestoreJob still restores from
the Backup.
The delete runs in the controller through the same minio client the
size probe uses, so it verifies TLS the way mariadb-operator did when
it wrote the dump. A dump on the platform bucket, which the operator
Backup names by its bucket and by the projected credentials Secret, is
reached through the platform's current endpoint and keys, still
trusting a CA the strategy pinned, so a Backup taken before the
endpoint moved is still deleted.
Platform credentials that cannot be read fall back to the ones the
operator Backup names. A failed delete holds the Backup and retries
with a Warning naming the skip-artifact-cleanup annotation, except in
a terminating namespace, where the Backup is released with a Warning
so it does not hold the namespace.
Assisted-by: LLM
Signed-off-by: Alexey Artamonov <aleksei.artamonov@aenix.io>
Two correctness gaps on the useSystemBucket flow.
Retention. Gating spec.backup.tasks out of the chart also dropped the keep
that psmdb task retention used, and an on-demand PerconaServerMongoDBBackup
is not covered by task retention, so nothing pruned the shared cozy-backups
bucket — a retention-swept Plan grew it unboundedly for every tenant at
once. Own the archive the way the Redis/Rabbitmq drivers own theirs: stamp
the operator's percona.com/delete-backup finalizer onto the backups minted
on this flow, and on Cozystack Backup deletion delete that operator CR and
wait for the finalizer to free the object before releasing. A legacy backup
(tenant's own bucket) keeps the pre-existing hands-off no-op. Adds the
delete verb on perconaservermongodbbackups and a skip-artifact-cleanup
escape hatch for a wedged operator, matching the sibling drivers. Also drops
the unused update verb from the psmdb cluster RBAC (server-side apply is a
patch, not an update).
Restore. resolveMongoDBBackupSource returned early off the live operator
Backup CR whenever it reported a destination, copying status.s3 as-is. On
this flow the operator can echo a destination with status.s3 empty (the
storage was injected, not declared), and the target has no declared storage
to resolve from either, so the restore stranded with no coordinates.
Backfill a missing live S3 block from the snapshot the BackupJob recorded.
Also correct the precondition godoc: the pbm agents start on
spec.backup.enabled alone; the declared storage is required by the backup
CR's resolution, not by the agents.
Assisted-By: LLM
Signed-off-by: Andrey Kolkov <androndo@gmail.com>
- Drop `-k`: mirror the RabbitMQ S3 layer (ARTIFACT_URI as the single
source of truth, forcePathStyle honoured, whole base URL kept) so
curl --aws-sigv4 verifies TLS against the ACME endpoint the helper
returns. The derived endpoint is default-port, so the curl 7.76.1
--connect-to port workaround is gone too; this also fixes the IPv6
and path-prefix mangling in the old host-splitting.
- Own the artifact: a cleanup mode in the script plus cleanupKafkaBackup
wired into BackupReconciler.cleanupOnDelete delete a deleted Backup's
object (best-effort, waited on) instead of orphaning it, matching the
RabbitMQ precedent. Kafka has the identical own-your-object property.
- Restore probes existence with --list (fail closed), so an unreachable
broker aborts instead of being misread as "topic absent" and created.
- Hold the fixes with tests at the right level: a colliding topic pair
(audit.events / audit-events, distinct partition counts) in the e2e so
a revert of the \Q...\E literal-match breaks the round-trip, and Go
tests pinning the scope stamp and the cleanup Job.
- Correct the docs/comments: endpoint-shape row, the "cached on nodes"
claim, and the narrower curl 7.76.1 S3 envelope (empty-body payload
hash) that makes a small modern-curl client image the right follow-up.
Signed-off-by: Andrey Kolkov <androndo@gmail.com>
Assisted-by: LLM
Delete the backup object when its Backup is removed. The Redis driver
owns its S3 object (one per BackupJob, no engine retention prunes it), so
it now spawns a cleanup-mode Job that deletes the object and holds the
Backup's finalizer until it completes, mirroring the Rabbitmq driver.
Without this a retention-pruned Plan grew the bucket unboundedly and the
key was lost with the CR.
Size the strategy Pod from backupStrategyController.redisBackupResources
so an admin can raise the restore ceiling (the throwaway loader holds the
whole dataset in memory) via chart values, which a direct edit of the
cluster-scoped, Helm-managed Strategy CR could not survive. The
loader-not-ready diagnostic now names the memory limit, the likeliest
cause, instead of only the image version.
Make the endpoint CA volume optional: nothing projects that Secret into
the app namespace, so a required mount wedged every backup Pod on
FailedMount; a missing ca.crt now falls through to the system CA store
and fails the handshake fast, which is not the same as skipping verify.
Promote the Pod-level activeDeadlineSeconds to the Job so a wedged run is
bounded once, not (backoffLimit+1) times. Use find, not ls, for the base
AOF so its no-match diagnostic is not dead code under pipefail.
Pin the object key reaching the rendered Job: both fixtures now render
--key={{ .ObjectKey }} and assert it, so zeroing the key (which left the
package green) is caught. Document .ObjectKey and the cleanup mode in the
CRD render-context, list cozy-default-redis among the Helm-managed CRs,
and mirror the CA/TLS and find fixes into the example strategy.
Assisted-By: LLM
Signed-off-by: Andrey Kolkov <androndo@gmail.com>
RabbitMQ's cluster operator ships no backup CRD and RabbitMQ has no
consistent online export of message payloads, so back up broker
DEFINITIONS (vhosts, users, permissions, queues, exchanges, bindings,
policies, parameters) over the management HTTP API and store them in the
system bucket. Message payloads and PITR are out of scope - a full-data
backup is a Velero volume snapshot, a separate strategy.
Add a first-class strategy.backups.cozystack.io/Rabbitmq driver, following
the Altinity pattern (a dedicated driver that renders a one-shot Job for an
HTTP-API engine):
- reconcileRabbitmq / reconcileRabbitmqRestore render the strategy's
PodTemplateSpec (curl GET/POST /api/definitions, push/pull to S3 with
--aws-sigv4) as a batch/v1.Job, for both in-place and to-copy restore.
- A Go-read precondition gates each run on the RabbitmqCluster reporting
AllReplicasReady (via the rabbitmqtypes partial type), surfacing a
precise Ready=False wait instead of a Job that starts and fails.
- The produced Backup records the object location on status.artifact.uri
(rendered from spec.artifactURITemplate; the Backup CRD has no status
subresource, so it persists on Create, as in the Etcd driver).
Wire dispatch in both controllers + supportedBackupStrategyKinds, register
rabbitmqtypes in the scheme, and grant read on rabbitmqclusters. Ship
cozy-default-rabbitmq (a $bucketName-gated Rabbitmq strategy) and route
apps.cozystack.io/RabbitMQ to it in the cozy-default BackupClass. The
application chart is untouched.
Add unit tests for the driver's pure helpers and the precondition gate, a
runnable example, and an honest-roundtrip Chainsaw e2e that seeds a
sentinel vhost, backs it up, drops it, and asserts it round-trips through
object storage on both restore flows.
The Job pod reuses the platform-migrations image (curl + ca-certificates)
under a new rabbitmqBackupClientImage key, stamped in lockstep with
chBackupClientImage so the repository stays pinned at one digest; a
dedicated slim image is a follow-up.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Andrey Kolkov <androndo@gmail.com>
Address branch-review recommendation: give the MongoDB strategy an explicit
case in BackupReconciler.cleanupOnDelete, matching CNPG / Altinity / MariaDB /
FoundationDB. A deleted MongoDB Backup artifact previously fell through to the
Velero default (a safe no-op — MongoDB driverMetadata never carries
velero.io/backup-name), but the explicit branch documents the "we do not own
the psmdb S3 archive" contract and guards the seam against a future shared
helper incidentally stamping velero.io/backup-name onto MongoDB metadata.
Ships with TestBackupCleanup_MongoDB_DoesNotFallThroughToVelero, mirroring the
one-test-per-branch convention its three siblings follow: it seeds the velero
metadata keys + a matching velero.io/Backup and asserts no DeleteBackupRequest
is synthesised and the Velero Backup survives — so deleting the branch makes
the test fail, which is what makes the guard self-verifying.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Andrey Kolkov <androndo@gmail.com>