Repository navigation
[release-2.1] fix: grant the bundle RBAC to the OLM v1 installer ServiceAccount - #3927
Merged
openshift-merge-bot[bot] merged 1 commit intoOct 26, 2026
Conversation
prepare-restricted-environment.sh renders an installer ClusterRole for the
OLM v1 path. OLM installs the bundle with that ServiceAccount, and the API
server refuses to create RBAC that grants permissions the installer does not
hold itself ("attempting to grant RBAC permissions not currently held").
The role was not updated when the operator gained access to pods, apiservers,
ingresses and the DevHubPluginCatalog CRD, so OLM v1 installs fail with:
failed to create resource: clusterroles.rbac.authorization.k8s.io
"rhdh-operator.v2.2-..." is forbidden: ... attempting to grant RBAC
permissions not currently held: {pods}, {apiservers}, {ingresses},
{devhubplugincatalogs}, {devhubplugincatalogs/status}
The Helm release fails halfway: the CRD, the Deployment and the
ClusterRoleBinding are created, so the operator pod runs without any
permissions and reports "forbidden" for every resource it watches.
Add the missing rules, and a check (make check-installer-rbac) that compares
the installer role with the bundle CSV and the ClusterRoles shipped in the
bundle so they cannot drift again.
Assisted-by: OpenCode
1 of 2 tasks
|
1 of 2 tasks
Member
|
/lgtm |
openshift-merge-bot
Bot
merged commit Oct 26, 2026
e5d5373
into
redhat-developer:release-2.1
4 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This is an automated cherry-pick of #3923
/assign zdrapela