Add pods/log RBAC for kubevirt datamover controller#2297
Add pods/log RBAC for kubevirt datamover controller#2297shubham-pampattiwar wants to merge 1 commit into
Conversation
The kubevirt datamover controller now collects pod logs from terminated datamover pods to aid troubleshooting. This requires get access to the pods/log subresource. Synced from migtools/kubevirt-datamover-controller config/rbac/role.yaml via make update-kubevirt-datamover-manifests, with unwanted RBAC changes from make bundle manually reverted. Related: migtools/kubevirt-datamover-controller#52 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Skipping CI for Draft Pull Request. |
WalkthroughThe operator’s RBAC declarations now grant the non-admin controller service account read access to pod logs through the ChangesPod log RBAC access
Estimated code review effort: 1 (Trivial) | ~5 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: shubham-pampattiwar 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 |
|
@shubham-pampattiwar: The following tests failed, say
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. |
Summary
pods/loggetpermission to the kubevirt datamover controller's ClusterRoleDetails
Without this permission, the controller's log collection fails with a 403:
The controller handles the RBAC failure gracefully (warns and continues), but the logs are lost.
Synced from
migtools/kubevirt-datamover-controllerconfig/rbac/role.yamlviamake update-kubevirt-datamover-manifests, with unwanted RBAC changes frommake bundlemanually reverted per standard practice.Test plan
make bundlegenerates the correct CSV entryRelated: migtools/kubevirt-datamover-controller#107
Summary by CodeRabbit