-
Notifications
You must be signed in to change notification settings - Fork 66
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
feat: expose last
on retain
options for restic mover
#797
Conversation
Signed-off-by: Devin Buhl <devin@buhl.casa>
Hi @onedr0p. Thanks for your PR. I'm waiting for a backube member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Signed-off-by: Tesshu Flower <tflower@redhat.com>
@JohnStrunk what do you think about allowing restic keep-last? Let me know if you're ok with this one and I could help add a unit test as well. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #797 +/- ##
=======================================
- Coverage 66.8% 66.8% -0.1%
=======================================
Files 55 55
Lines 7055 7058 +3
=======================================
Hits 4716 4716
- Misses 2059 2061 +2
- Partials 280 281 +1
|
My concern with this is if the backup portion succeeds, but something else (like the forget) fails such that the operator thinks the container failed. This can cause the operator to loop, retrying backups. The result could end up being a large number of backups in rapid succession. Having said that, the current structure of the restic script makes that fairly unlikely since all it does is a forget right after the backup. Honestly, I'm on the fence w/ whether to take this because it's dangerous for the user, in a way that isn't obvious. |
This also needs a |
Signed-off-by: Tesshu Flower <tflower@redhat.com>
fixed the make generate, but I do think @JohnStrunk your concerns are valid about potentially losing older snapshots unintentionally. |
/ok-to-test |
I've seen then happen on my end once or twice but maybe it's worth putting in the docs to use retain:
last: 10
daily: 7 |
@JohnStrunk with that said if |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JohnStrunk, onedr0p The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Describe what this PR does
Allows users to set
last
as forget option in the ReplicationDestination CR.Is there anything that requires special attention?
I believe I hit all the right spots in the code as the functionality was mainly there just not exposed as an option.
Related issues:
#557