vmware-tanzu / velero

Backup and migrate Kubernetes applications and their persistent volumes
https://velero.io
Apache License 2.0
8.4k stars 1.37k forks source link

[CP-to-main]Use PVC to track the CSI snapshot in restore #7856

Closed reasonerjt closed 2 weeks ago

reasonerjt commented 3 weeks ago

This commit fixes #7849. It will use PVC instead of PV to track CSI snapshots to generate restore volume info metadata. So that in the case the PVC is not bound to PV the metadata can be populated correctly.

codecov[bot] commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 38.09524% with 13 lines in your changes missing coverage. Please review.

Project coverage is 58.77%. Comparing base (a8d77ea) to head (1d10900). Report is 1 commits behind head on main.

Files Patch % Lines
internal/volume/volumes_information.go 38.09% 12 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #7856 +/- ## ========================================== - Coverage 58.80% 58.77% -0.03% ========================================== Files 345 345 Lines 28759 28765 +6 ========================================== - Hits 16911 16907 -4 - Misses 10420 10428 +8 - Partials 1428 1430 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.