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

Add the design of cleaning artifacts generated during CSI B/R #8676

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

blackpiglet
Copy link
Contributor

@blackpiglet blackpiglet commented Feb 11, 2025

Thank you for contributing to Velero!

Please add a summary of your change

Does your change fix a particular issue?

Fixes #(issue)

Please indicate you've done the following:

@github-actions github-actions bot added the Area/Design Design Documents label Feb 11, 2025
@blackpiglet blackpiglet added kind/changelog-not-required PR does not require a user changelog. Often for docs, website, or build changes and removed Area/Design Design Documents labels Feb 11, 2025
@github-actions github-actions bot added the Area/Design Design Documents label Feb 11, 2025
Copy link

codecov bot commented Feb 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.39%. Comparing base (5d9a4e8) to head (b72f660).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8676   +/-   ##
=======================================
  Coverage   59.39%   59.39%           
=======================================
  Files         370      370           
  Lines       39988    39988           
=======================================
  Hits        23752    23752           
  Misses      14744    14744           
  Partials     1492     1492           

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

design/clean_artifacts_in_csi_flow.md Show resolved Hide resolved
if (vsc.Status != nil && boolptr.IsSetToTrue(vsc.Status.ReadyToUse)) &&
(vs.Status != nil && boolptr.IsSetToTrue(vs.Status.ReadyToUse)) {
// VS and VSC are ready. Delete them to make sure they will not cause conflict for the next restore.
if err := p.crClient.Delete(context.TODO(), vs); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't look reasonable to do these deletion in a Progress call

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can move the deletion logic into the restore finalization controller.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modified.

design/clean_artifacts_in_csi_flow.md Show resolved Hide resolved
design/clean_artifacts_in_csi_flow.md Outdated Show resolved Hide resolved
design/clean_artifacts_in_csi_flow.md Show resolved Hide resolved
@blackpiglet blackpiglet force-pushed the 7979_design branch 2 times, most recently from 593495e to 0b0a727 Compare February 11, 2025 06:42
Signed-off-by: Xun Jiang/Bruce Jiang <59276555+blackpiglet@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/Design Design Documents kind/changelog-not-required PR does not require a user changelog. Often for docs, website, or build changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants