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

Use PVC to track the CSI snapshot in restore #7852

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

reasonerjt
Copy link
Contributor

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.

Thank you for contributing to Velero!

Fixes #7849

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

@reasonerjt reasonerjt added the kind/changelog-not-required PR does not require a user changelog. Often for docs, website, or build changes label Jun 3, 2024
@reasonerjt reasonerjt requested review from blackpiglet and removed request for shubham-pampattiwar June 3, 2024 10:59
Copy link

codecov bot commented Jun 3, 2024

Codecov Report

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

Project coverage is 58.79%. Comparing base (ce16acb) to head (f6367ca).

Files Patch % Lines
internal/volume/volumes_information.go 38.09% 12 Missing and 1 partial ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##           release-1.14    #7852      +/-   ##
================================================
- Coverage         58.80%   58.79%   -0.01%     
================================================
  Files               345      345              
  Lines             28759    28765       +6     
================================================
+ Hits              16911    16913       +2     
- Misses            10420    10423       +3     
- Partials           1428     1429       +1     

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

This commit fixes vmware-tanzu#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.

Signed-off-by: Daniel Jiang <[email protected]>
@reasonerjt reasonerjt closed this Jun 4, 2024
@reasonerjt reasonerjt reopened this Jun 4, 2024
@github-actions github-actions bot requested review from anshulahuja98 and sseago June 4, 2024 03:22
@reasonerjt
Copy link
Contributor Author

For some reason, the DCO check is pending on the status Waiting for status to be reported

I will temporarily remove it from the required checks.

@reasonerjt reasonerjt merged commit 2136679 into vmware-tanzu:release-1.14 Jun 4, 2024
195 of 197 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/changelog-not-required PR does not require a user changelog. Often for docs, website, or build changes target/1.14-rc.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants