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

Support update the backup VolumeInfos by the Async ops result. #7554

Merged
merged 2 commits into from
Apr 1, 2024

Conversation

blackpiglet
Copy link
Contributor

@blackpiglet blackpiglet commented Mar 23, 2024

  1. Add PutBackupVolumeInfos method.
  2. Add CompletionTimestamp in VolumeInfo.
  3. Add Size in SnapshotDataMovementInfo.
  4. Update CompletionTimpstmap, SnapshotHandle, RetainedSnapshot, and Size in VolumeInfo on DataUpload Operation completes.

Thank you for contributing to Velero!

Please add a summary of your change

Does your change fix a particular issue?

Fixes #7357

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.

Copy link

codecov bot commented Mar 23, 2024

Codecov Report

Attention: Patch coverage is 62.93103% with 43 lines in your changes are missing coverage. Please review.

Project coverage is 61.53%. Comparing base (d640cc1) to head (5462035).
Report is 7 commits behind head on main.

Files Patch % Lines
pkg/backup/backup.go 53.57% 33 Missing and 6 partials ⚠️
pkg/cmd/server/server.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7554      +/-   ##
==========================================
- Coverage   61.74%   61.53%   -0.21%     
==========================================
  Files         265      265              
  Lines       29257    29355      +98     
==========================================
- Hits        18064    18063       -1     
- Misses       9910    10004      +94     
- Partials     1283     1288       +5     

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

@blackpiglet blackpiglet force-pushed the 7357_fix branch 2 times, most recently from 4585190 to 9f8bfd2 Compare March 23, 2024 07:24
@blackpiglet blackpiglet force-pushed the 7357_fix branch 8 times, most recently from 44c66ae to 7edbb9a Compare March 23, 2024 17:55
@blackpiglet blackpiglet marked this pull request as ready for review March 25, 2024 02:18
internal/volume/volumes_information.go Show resolved Hide resolved
internal/volume/volumes_information.go Show resolved Hide resolved
internal/volume/volumes_information.go Show resolved Hide resolved
pkg/backup/backup.go Show resolved Hide resolved
@blackpiglet blackpiglet force-pushed the 7357_fix branch 2 times, most recently from 2d1ce0f to d447b0b Compare March 28, 2024 10:46
1. Add PutBackupVolumeInfos method.
2. Add CompletionTimestamp in VolumeInfo.
3. Add Size in SnapshotDataMovementInfo.
4. Update CompletionTimpstmap, SnapshotHandle, RetainedSnapshot
   and Size in VolumeInfo on DataUpload Operation completes.

Signed-off-by: Xun Jiang <blackpigletbruce@gmail.com>
@blackpiglet blackpiglet force-pushed the 7357_fix branch 3 times, most recently from a063e0f to 44a0dfa Compare March 28, 2024 16:17
handleSkippedPVHasRetainPolicy

According to comment, calling executePVAction aims to reset PV's
claimRef, but the reset logic was moved into resetVolumeBindingInfo
since release-1.4.

Signed-off-by: Xun Jiang <blackpigletbruce@gmail.com>
@blackpiglet blackpiglet merged commit 7596265 into vmware-tanzu:main Apr 1, 2024
65 of 66 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.

Support to update the backup Async Operation result in the VolumeInfo metadata
3 participants