-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
forklift: add missing rbac #3320
base: main
Are you sure you want to change the base?
Conversation
Hi @bennyz. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. 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 NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
1ccdb77
to
8497de8
Compare
"get", | ||
"list", | ||
"watch", | ||
"*", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bennyz hi. I remember having global perms was not recommended. Refer - https://issues.redhat.com/browse/CNV-22907 and https://issues.redhat.com/browse/CNV-32812
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I have to do this to because of how pkg/operator/resources/cluster/rbac.go
is set
There is also:
{
APIGroups: []string{
"cdi.kubevirt.io",
},
Resources: []string{
"*",
},
Verbs: []string{
"*",
},
},
in L#169
But I'm open to suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind unifying those two with a comment that explains the motivation?
Something along the lines of, "*" permissions are bad, but logically it's clear that CDI can do anything on CDI resources
8497de8
to
4584d36
Compare
/test all
Yup, there should be a unit test for this |
{ | ||
APIGroups: []string{ | ||
"forklift.cdi.kubevirt.io", | ||
}, | ||
Resources: []string{ | ||
"ovirtvolumepopulators", | ||
"openstackvolumepopulators", | ||
}, | ||
Verbs: []string{ | ||
"get", | ||
"list", | ||
"watch", | ||
}, | ||
}, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need this?
Signed-off-by: Benny Zlotnik <[email protected]>
Signed-off-by: Benny Zlotnik <[email protected]>
50d7e4d
to
e0b0dc2
Compare
/test all |
/retest |
@bennyz: The following tests failed, say
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. I understand the commands that are listed here. |
@awels This PR seems stalled. Do we still want to have it merged? |
We do, but we need to address the |
What this PR does / why we need it:
Add missing RBAC for ovirt and openstack volume populator CRDs
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Release note: