-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
base: main
Are you sure you want to change the base?
Conversation
fe4e8d2
to
43bbfa8
Compare
43bbfa8
to
c369e45
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
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 { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modified.
593495e
to
0b0a727
Compare
Signed-off-by: Xun Jiang/Bruce Jiang <59276555+blackpiglet@users.noreply.github.com>
0b0a727
to
b72f660
Compare
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:
make new-changelog
) or comment/kind changelog-not-required
on this PR.site/content/docs/main
.