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

Patch dbr's status when error happens #8086

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

reasonerjt
Copy link
Contributor

@reasonerjt reasonerjt commented Aug 6, 2024

This commit makes sure the dbr's status is "Processed" when an error happens before the actual deletion is started

fixes #7812

#8029 has partially fixed the problem in #7812 but this PR handles more error conditions.

  • 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.

ywk253100
ywk253100 previously approved these changes Aug 6, 2024
Copy link

codecov bot commented Aug 6, 2024

Codecov Report

Attention: Patch coverage is 56.00000% with 11 lines in your changes missing coverage. Please review.

Project coverage is 58.78%. Comparing base (f7f9ed3) to head (5c88c89).

Files Patch % Lines
pkg/controller/backup_deletion_controller.go 56.00% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8086      +/-   ##
==========================================
- Coverage   58.80%   58.78%   -0.03%     
==========================================
  Files         358      358              
  Lines       30085    30079       -6     
==========================================
- Hits        17692    17681      -11     
- Misses      10945    10950       +5     
  Partials     1448     1448              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This commit makes sure the dbr's status is "Processed" when an error
happens before the actual deletion is started

fixes vmware-tanzu#7812

Signed-off-by: Daniel Jiang <[email protected]>
@ywk253100 ywk253100 merged commit b7f2e15 into vmware-tanzu:main Aug 7, 2024
44 of 45 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.

The status.phase of DeleteBackupRequest should be updated as Processed when got error during the processing
3 participants