Change internal-services-manager-role to namespace level#163
Conversation
Replace the ClusterRole by a Role and ClusterRoleBinding by a RoleBinding as this is only required in the internal-services namespace. Doing it at the cluster level was granting unnecessary permission to the other namespaces on common clusters. Signed-off-by: Hugo Arès <hares@redhat.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hugares 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 |
|
This comes from https://github.com/konflux-ci/internal-services/blob/main/config/rbac/role.yaml so I think it will be wiped out |
I did the change and if I run kustomize build locally, my change is not getting wiped out: |
Every time we merge a change to the internal-services repo, this file is overwritten in this repo |
I get it now, thanks for the explanation. Can we change this in source repo, are you ok with that? |
I am okay with it, but operator-sdk isn't. I just tried it (change ClusterRole to Role then |
|
PR needs rebase. 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. |
Replace the ClusterRole by a Role and ClusterRoleBinding by a RoleBinding as this is only required in the internal-services namespace. Doing it at the cluster level was granting unnecessary permission to the other namespaces on common clusters.