Introduce addressable resolver aggregated cluster role#1013
Conversation
|
/assign @Harwayne |
Harwayne
left a comment
There was a problem hiding this comment.
Looks good!
I think we should add read permissons for K8s and Knative Services as well, as those tend to be the other things that need to be resolved.
|
Awesome!! |
|
I think @Harwayne what do you think? |
|
@n3wscott I like |
|
I missed Knative routes, which should also be included. And we can remove part of 200-controller-clusterrole.yaml and add a binding for this new |
6263f09 to
20e174f
Compare
0709563 to
38e69ef
Compare
Done
After some thought I chose not to change the controller clusterrole defined in so I think for sake of simplicity and have all needed context in a single role, I think maybe it's better to keep it as it is. |
My preference is the opposite. You're completely correct that it doesn't buy us much now, but I think it will be a great benefit in the medium term. I want all pieces that need to resolve Addressables to use the single aggregated role for that purpose. Then they can have their own unique roles for everything else they need. My reasoning is that the big benefit of the aggregated role is so that when new Addressable CRDs are created, then the existing infrastructure that needs to resolve them immediately gets the permission to do so, without needing to do any work. For example, I create a new CRD named Foo that is Addressable and add a ClusterRole to read Foos that is aggregated into the aggregate ClusterRole. I then create a Subscription whose In the current, single ClusterRoleBinding world, the Subscription controller can't process that Subscription, because it doesn't have permission to read Foos. If instead, the Subscription controller had the aggregated ClusterRole, then it would work immediately, without needing to grant any new bindings. |
* Add addressable-resolver aggregated cluster role * Add broker addressable cluster role * Add channel addressable cluster role
72198c9 to
4cf7546
Compare
|
@Harwayne done |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Abd4llA, Harwayne 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 |
Co-authored-by: serverless-qe <serverless-support@redhat.com>
Fixes #916
Proposed Changes
Release Note