Skip to content

Commit

Permalink
Merge branch 'release-1.12' into release-1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
blackpiglet authored Jan 9, 2024
2 parents 03bad25 + cf7074f commit 5a178b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/7283-Lyndon-Li
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix issue #6928, remove snapshot deletion timeout for PVB
6 changes: 1 addition & 5 deletions pkg/controller/backup_deletion_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ import (
)

const (
snapshotDeleteTimeout = time.Minute
deleteBackupRequestMaxAge = 24 * time.Hour
)

Expand Down Expand Up @@ -513,12 +512,9 @@ func (r *backupDeletionReconciler) deletePodVolumeSnapshots(ctx context.Context,
return []error{err}
}

ctx2, cancelFunc := context.WithTimeout(ctx, snapshotDeleteTimeout)
defer cancelFunc()

var errs []error
for _, snapshot := range snapshots {
if err := r.repoMgr.Forget(ctx2, snapshot); err != nil {
if err := r.repoMgr.Forget(ctx, snapshot); err != nil {
errs = append(errs, err)
}
}
Expand Down

0 comments on commit 5a178b8

Please sign in to comment.