Add datadownloads RBAC to kubevirt-datamover ClusterRole - #2352
Conversation
Phase 3 (DataDownload) support in kubevirt-datamover-controller (migtools/kubevirt-datamover-controller#124) needs list/watch on datadownloads, but oadp-kubevirt-datamover-controller-manager's ClusterRole only had datauploads. This stalled the whole controller-runtime cache/manager on continuous watch failures, wedging DataUpload reconciliation too. Fixes openshift#2351 Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
|
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 (2)
WalkthroughThe kubevirt-datamover controller RBAC now includes Velero ChangesDataDownload RBAC
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/cherry-pick oadp-1.6 |
|
@kaovilai: once the present PR merges, I will cherry-pick it on top of 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. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Joeavaikath, 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 |
|
@kaovilai: 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. |
|
@kaovilai: new pull request created: #2354 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
The ClusterRole bound to
oadp-kubevirt-datamover-controller-managerwas missing RBAC fordatadownloads/datadownloads/status, which Phase 3 (DataDownload) support in kubevirt-datamover-controller (migtools/kubevirt-datamover-controller#124) needs. Without it, the controller-runtime cache's watch onDataDownloadfails continuously with:This stalls the entire manager's reconcile loop — not just DataDownload, but DataUpload too, since they share one cache/manager process.
config/kubevirt-datamover-controller_rbac/role.yamlis updated to match upstream'sconfig/rbac/role.yaml(addingdatadownloads/datadownloads/statusto the existingdatauploads/datauploads/statusrule blocks), andmake bundlewas re-run to propagate the change into the CSV.Fixes #2351
How to test the changes made
Deploy, then:
should show no
Failed to watch ... datadownloadserrors, and aDataUploadcreated via a real velero backup should progress past an emptystatus.phase.Summary by CodeRabbit