-
Notifications
You must be signed in to change notification settings - Fork 68
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
Provide option to cleanup temporary objects (PVCs) made by Restore Process #1158
Comments
I think the main hesitation about implementing this feature would be that we'd need to specifically document not to use the flag in most situations. Many use-cases benefit from these PVCs not being cleaned up as it means you don't need to re-download the entire data on each replication cycle (and this is crucial for things like rsync). When users are done the expectation is that they can remove their replicationdestination if syncs are no longer required, and at that point the pvcs would be cleaned up as well. |
Oh I was unaware removing the |
hmm. I like having the If this is something specific to Restic restore, and doesn't make sense elsewhere, then can we only apply to |
Seems related to #1129 |
But that's ok to just document this, I mean the use case is basically a "single use ReplicationDestination," which I have to imagine is relatively common. "Delete the RD" is not really feasible for GitOps workflows and IMO the continued existence of the RD is useful, since it serves to document the origin of the PVC that points to it and can be marked as "single use" via a flag or similar. @tesshuflower what's the best way to move this forward? does it make sense to open a PR immediately adding the new behavior? |
We've had a discussion and think that there's been enough interest for us to implement the delete option for the temp PVC on a replicationdestination. Notes for implementation:
|
Describe the feature you'd like to have.
An option added to
ReplicationDestination
to request volsync to clean-up temporary PVCs created during the restore process which are no longer needed when the restore has completed.For example:
Leaves behind 2 snapshots when the restore is completed:
What is the value to the end user? (why is it a priority?)
While the docs state
After the restore completes, the ReplicationDestination object can be deleted.
It's not clear there can be multiple objects to cleanup. Why not allow the cleanup process to be automated by volsync instead of the user needing to remember to do this manually?How will we know we have a good solution? (acceptance criteria)
Upon completion of a successful restore, if configured to do so, volsync will cleanup temporary objects such as PVCs no longer needed.
Additional context
My preference is this should be enabled by default unless you have a reason to keep the objects. However, I understand this could be considered a breaking change if users expect/want these objects to be left behind. I'm fine if disabled by default, just need to the option to enable it.
The text was updated successfully, but these errors were encountered: