vmware-tanzu / velero

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

Issue fix 7648: avoid snapshot leak on expose failure #7662

Closed Lyndon-Li closed 3 months ago

Lyndon-Li commented 3 months ago

Fix issue #7648. Adjust the exposing logic to avoid exposing failure and snapshot leak when expose fails

codecov[bot] commented 3 months ago

Codecov Report

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

Project coverage is 61.76%. Comparing base (f25c154) to head (dcf760d). Report is 2 commits behind head on main.

Files Patch % Lines
pkg/exposer/csi_snapshot.go 94.11% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #7662 +/- ## ========================================== + Coverage 61.26% 61.76% +0.49% ========================================== Files 276 276 Lines 31338 24716 -6622 ========================================== - Hits 19200 15265 -3935 + Misses 10784 8098 -2686 + Partials 1354 1353 -1 ```

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