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

feat(restic): support for using an existing pvc as a repository #1427

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

Conversation

onedr0p
Copy link
Contributor

@onedr0p onedr0p commented Oct 17, 2024

Describe what this PR does

Support for using an existing pvc as a restic repository, opens up the ability to use NFS backed volumes (and others) to store the backup repository on instead of only using s3

Is there anything that requires special attention?

Related issues:

#319

2 years later.....

Continuation of #321

Copy link
Contributor

openshift-ci bot commented Oct 17, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: onedr0p
Once this PR has been reviewed and has the lgtm label, please assign johnstrunk for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Contributor

openshift-ci bot commented Oct 17, 2024

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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-sigs/prow repository.

@openshift-ci openshift-ci bot added the size/M label Oct 17, 2024
Copy link

codecov bot commented Oct 17, 2024

Codecov Report

Attention: Patch coverage is 48.27586% with 15 lines in your changes missing coverage. Please review.

Project coverage is 66.2%. Comparing base (493d997) to head (1fdf146).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
controllers/mover/restic/mover.go 44.4% 13 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            main   #1427     +/-   ##
=======================================
- Coverage   67.5%   66.2%   -1.3%     
=======================================
  Files         57      57             
  Lines       5844    7497   +1653     
=======================================
+ Hits        3947    4967   +1020     
- Misses      1612    2243    +631     
- Partials     285     287      +2     
Files with missing lines Coverage Δ
controllers/mover/restic/builder.go 90.5% <100.0%> (-0.8%) ⬇️
controllers/mover/restic/mover.go 79.9% <44.4%> (-2.7%) ⬇️

... and 53 files with indirect coverage changes

@openshift-ci openshift-ci bot added size/L and removed size/M labels Oct 18, 2024
Signed-off-by: Devin Buhl <[email protected]>

fix: run make bundle

Signed-off-by: Devin Buhl <[email protected]>

Initial work on test (#1)

Co-authored-by: Devin Buhl <[email protected]>

fix: run make custom-scorecard-tests-generate-config

Signed-off-by: Devin Buhl <[email protected]>

Update test-e2e/test_restic_manual_PVC_copy_trigger.yml

Signed-off-by: Devin Buhl <[email protected]>

fix: update linting issues

Signed-off-by: Devin Buhl <[email protected]>

fix: update e2e test

Signed-off-by: Devin Buhl <[email protected]>

Rename test_restic_manual_PVC_copy_trigger.yml to test_restic_manual_pvc_copy_trigger.yml

Signed-off-by: Devin Buhl <[email protected]>

fix: update e2e test

Signed-off-by: Devin Buhl <[email protected]>

add vars to restic builder

Signed-off-by: Devin Buhl <[email protected]>
Copy link

sonarcloud bot commented Oct 18, 2024

@onedr0p
Copy link
Contributor Author

onedr0p commented Oct 21, 2024

@JohnStrunk is this what you had in mind from our discussion from awhile ago in #321?

@JohnStrunk
Copy link
Member

We haven't forgotten about this one... Things have been busy. We'll take a look when we get a chance.

@onedr0p
Copy link
Contributor Author

onedr0p commented Nov 5, 2024

No worries, I am actually using a kyverno policy to mutate the job to add this support in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants