Update e2e and kubevirt-dm design to use custom volume policy#2254
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughThe PR updates the kubevirt datamover design text and e2e volume-policy fixtures to use custom volume policy actions with ChangesKubeVirt datamover policy update
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/hold until plugin PR merges |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 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.
Inline comments:
In `@docs/design/kubevirt-datamover.md`:
- Line 54: The nested bullet under the SnapshotMoveData requirements is indented
inconsistently and is triggering markdownlint MD005. Update the list formatting
in the datamover docs so this bullet matches the surrounding nested bullets’
indentation level, keeping the structure consistent with the nearby list items.
- Around line 53-57: The kubevirt datamover selection logic in the decision text
is too permissive because it only rejects non-custom/non-skip actions and still
allows unrelated custom actions to slip through. Update the wording around the
VM PVC iteration so it explicitly requires every non-skipped PVC to be either a
matching custom action with datamover=kubevirt or a skip policy, and reject the
VM if any PVC has a different custom action; keep the references consistent with
the existing kubevirt datamover/SnapshotMoveData decision flow.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 4dfe5e40-0627-46e5-95ce-761b8e1ce724
📒 Files selected for processing (3)
docs/design/kubevirt-datamover.mdtests/e2e/lib/backup.gotests/e2e/sample-applications/virtual-machines/kubevirt-dm/volume-policy.yaml
c11d87d to
48ceb61
Compare
Apply Scott's review suggestion — volume policy action is "custom" with "datamover: kubevirt" in action parameters, not a bare "kubevirt" action. This aligns with the volume policy changes in PR openshift#2254. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering> Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kaovilai, shubham-pampattiwar, sseago The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/hold cancel |
|
/lgtm |
|
@sseago: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. I understand the commands that are listed here. |
|
/cherry-pick oadp-1.6 |
|
@sseago: new pull request created: #2258 DetailsIn response to this:
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. |
Why the changes were made
Updates e2e tests to use custom volume policy instead of skip. Currently, this PR breaks tests, but once migtools/kubevirt-datamover-plugin#23 merges, this PR will be needed to fix tests.
With the plugin change, instead of a skip policy action, the following is needed in the matching volume policy to trigger kubevirt-dm backups:
How to test the changes made
Summary by CodeRabbit
New Features
datamover: kubevirt.Documentation
Tests
action.type: customand includeparameters.datamover: kubevirt.