Skip to content

Remove Restic code path from PodVolumeRestore#9732

Open
blackpiglet wants to merge 1 commit intovelero-io:mainfrom
blackpiglet:9468_fix
Open

Remove Restic code path from PodVolumeRestore#9732
blackpiglet wants to merge 1 commit intovelero-io:mainfrom
blackpiglet:9468_fix

Conversation

@blackpiglet
Copy link
Copy Markdown
Contributor

@blackpiglet blackpiglet commented Apr 16, 2026

Thank you for contributing to Velero!

Please add a summary of your change

Does your change fix a particular issue?

Fixes #9468

Please indicate you've done the following:

@blackpiglet blackpiglet self-assigned this Apr 16, 2026
@blackpiglet blackpiglet changed the title 9468 fix Remove Restic code path from PodVolumeRestore Apr 16, 2026
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 16, 2026

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 61.30%. Comparing base (fc6361b) to head (cccb125).

Files with missing lines Patch % Lines
cmd/velero-restore-helper/velero-restore-helper.go 0.00% 1 Missing ⚠️
pkg/controller/pod_volume_restore_controller.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9732      +/-   ##
==========================================
+ Coverage   60.98%   61.30%   +0.32%     
==========================================
  Files         384      383       -1     
  Lines       36612    36386     -226     
==========================================
- Hits        22327    22306      -21     
+ Misses      12677    12474     -203     
+ Partials     1608     1606       -2     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@blackpiglet blackpiglet marked this pull request as ready for review April 16, 2026 09:15
@github-actions github-actions bot requested review from Lyndon-Li and kaovilai April 16, 2026 09:24
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Collaborator

@shubham-pampattiwar shubham-pampattiwar left a comment

Choose a reason for hiding this comment

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

Thanks for putting this together, the restic code path cleanup is great to see.
One thing I wanted to flag: removing existing enum values (restic, "") from the CRD schemas is a breaking change per the https://github.com/operator-framework/operator-controller/blob/main/docs/concepts/crd-upgrade-safety.md policy. This would block upgrades for OLM-managed deployments, and existing CRs in etcd with those values would fail validation against the new schema.
Could we keep the enum as-is and instead add controller-level validation that rejects restic / "" at reconcile time (e.g., fail with "restic uploader is no longer supported, use kopia")? Same end result without the schema-level break.

+1 to @kaovilai's concern as well.

@sseago
Copy link
Copy Markdown
Collaborator

sseago commented Apr 17, 2026

+1 to avoiding the breaking change to CRDs. Without version bumps, it's ok to add to enum values but not to remove them. Failing with a validation error when Restic is specified should be sufficient.

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.

Remove Restic path for PVR

4 participants