Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete PartiallyFailed orphaned backups as well as Completed ones #6649

Merged

Conversation

sseago
Copy link
Collaborator

@sseago sseago commented Aug 14, 2023

Fixes #6648

Thank you for contributing to Velero!

When cleaning up orphaned backups, include PartiallyFailed with Completed, since they are treated equivalently by the rest of backup sync.

Does your change fix a particular issue?

Fixes #6648

Please indicate you've done the following:

  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Created a changelog file or added /kind changelog-not-required as a comment on this pull request.
  • Updated the corresponding documentation in site/content/docs/main.

@codecov
Copy link

codecov bot commented Aug 14, 2023

Codecov Report

Merging #6649 (8d0a8ba) into main (713792d) will increase coverage by 0.17%.
Report is 26 commits behind head on main.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #6649      +/-   ##
==========================================
+ Coverage   60.18%   60.35%   +0.17%     
==========================================
  Files         242      242              
  Lines       25712    25971     +259     
==========================================
+ Hits        15475    15676     +201     
- Misses       9156     9192      +36     
- Partials     1081     1103      +22     
Files Changed Coverage Δ
pkg/controller/backup_sync_controller.go 45.18% <100.00%> (ø)

... and 14 files with indirect coverage changes

@blackpiglet
Copy link
Contributor

Looks good, but suggest putting this PR on hold until release-1.12 is cut.

@sseago sseago marked this pull request as draft August 15, 2023 14:24
changelogs/unreleased/6649-sseago Outdated Show resolved Hide resolved
@blackpiglet
Copy link
Contributor

@sseago
release-1.12 was cut. We can continue with this task.

@sseago sseago marked this pull request as ready for review August 21, 2023 13:32
Co-authored-by: Tiger Kaovilai <passawit.kaovilai@gmail.com>
Signed-off-by: Xun Jiang/Bruce Jiang <59276555+blackpiglet@users.noreply.github.com>
@kaovilai
Copy link
Contributor

kaovilai commented Sep 6, 2023

Can we change PR title to "Delete PartiallyFailed orphaned backups as well as Completed ones" ?

@sseago sseago changed the title Deal with PartiallyFailed orphaned backups as well as Completed ones Deletee PartiallyFailed orphaned backups as well as Completed ones Sep 7, 2023
@sseago sseago changed the title Deletee PartiallyFailed orphaned backups as well as Completed ones Delete PartiallyFailed orphaned backups as well as Completed ones Sep 7, 2023
@shubham-pampattiwar shubham-pampattiwar merged commit 0d4e61e into vmware-tanzu:main Oct 6, 2023
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Backup sync controller deleteOrphanedBackups does not clean up PartiallyFailed backups
4 participants