mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-21 12:13:55 +09:00
docs(backups): say who deletes a MariaDB Backup
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>
This commit is contained in:
1 parent
0972690f0d
commit
74fbb34aca
1 file changed
+2
-2
@@ -137,8 +137,8 @@ func (r *BackupReconciler) cleanupOnDelete(ctx context.Context, backup *backupsv
|
||||
// backup run of the same prefix and a Plan never deletes a Backup, so
|
||||
// a dump on the platform bucket is deleted here or never. A dump in
|
||||
// a tenant's own bucket is deleted too: the Backup proves it owns
|
||||
// it, and the tenant deleting the Backup is asking for exactly that
|
||||
// (see cleanupMariaDBBackup).
|
||||
// it, and tenants cannot delete Backups, so the delete comes from an
|
||||
// administrator or from namespace teardown (see cleanupMariaDBBackup).
|
||||
return r.cleanupMariaDBBackup(ctx, backup)
|
||||
case strategyv1alpha1.MongoDBStrategyKind:
|
||||
// Split by flow (see cleanupMongoDBBackup). A legacy backup writes to the
|
||||
|
||||
Reference in new issue
Block a user