COO-1268: monitoring: create unique cluster roles#997
COO-1268: monitoring: create unique cluster roles#997jan--f wants to merge 1 commit intorhobs:mainfrom
Conversation
|
@jan--f: This pull request references COO-1268 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.22.0" version, but no target version was set. 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 openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jan--f 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 |
c11641c to
5f7c35c
Compare
simonpasquier
left a comment
There was a problem hiding this comment.
shouldn't we rather update the cluster role binding's name? IIUC both stacks should create the same cluster role which shouldn't cause an issue.
I did consider that. But that would require bigger changes in the reconcile logic I think. Currently we reschedule a reconcile event on |
Otherwise two stack with the same name in two namespaces try to create the same cluster roles. Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
5f7c35c to
8223967
Compare
|
What about And what will happen to existing installations? I suppose that the operator will leave the old cluster roles + bindings behind? |
|
@jan--f: The following test 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. |
Otherwise two stack with the same name in two namespaces try to create the same cluster roles.
Another option is to create the cluster roles via the bundle so we always have only one cluster role. This would also help with cleanup. The downside is that we always create the cluster roles whether they get used or not.