🌱 Update crane to consume migtools/pvc-transfer to fix ingre… - #770
Conversation
…me validation bug Signed-off-by: M Sajid Mansoori <mmansoor@redhat.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThe PR changes PVC transfer imports and documentation from ChangesPVC transfer module update
Estimated code review effort: 1 (Trivial) | ~5 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
cmd/transfer-pvc/transfer-pvc_test.go (1)
9-9: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winConfirm regression coverage for the ingress hostname validation fix.
The changed line updates only the
rsynctransferimport. The shownTestRestrictedContainersApplyTotest covers rsync command options, not ingress hostname validation. Confirm thatcmd/transfer-pvc/transfer-pvc_test.gotests the hostname cases that triggered the bug. If no such test exists, add one before merge.As per coding guidelines: “Bug fixes should include regression tests when possible.”
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@cmd/transfer-pvc/transfer-pvc_test.go` at line 9, Review the tests in transfer-pvc_test.go and add regression coverage for the ingress hostname validation cases that triggered the fix, rather than relying on TestRestrictedContainersApplyTo, which only verifies rsync options. Exercise both the affected valid and invalid hostname behavior through the relevant transfer-pvc validation flow.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@cmd/transfer-pvc/transfer-pvc_test.go`:
- Line 9: Review the tests in transfer-pvc_test.go and add regression coverage
for the ingress hostname validation cases that triggered the fix, rather than
relying on TestRestrictedContainersApplyTo, which only verifies rsync options.
Exercise both the affected valid and invalid hostname behavior through the
relevant transfer-pvc validation flow.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: ffea0bdf-56f1-490c-8f67-019f4cfdebb7
⛔ Files ignored due to path filters (1)
go.sumis excluded by!**/*.sum
📒 Files selected for processing (3)
cmd/transfer-pvc/transfer-pvc.gocmd/transfer-pvc/transfer-pvc_test.gogo.mod
aufi
left a comment
There was a problem hiding this comment.
There are few places to be updated in docs:
- README.md:37 — link text and URL backube/pvc-transfer
- AGENTS.md:17 — backube/pvc-transfer - PV migration
- docs/development/README.md:57 — link text and URL backube/pvc-transfer
- docs/development/architecture.md:95 — URL https://github.com/backube/pvc-transfer
Otherwise looks great.
Signed-off-by: M Sajid Mansoori <mmansoor@redhat.com>
|
/rfr |
@aufi thanks for catching that , I have updated the docs as you suggested , can you please review when you get a chance. |
|
Tested on OCP as well , no blockers , the tests passed. |
aufi
left a comment
There was a problem hiding this comment.
Thanks for the PR, looks perfect.
…ss hostname validation bug
Summary by CodeRabbit
Chores
Documentation