Skip to content

Commit a94d734

Browse files
authored
fix(rbac): Restore listeners/finalizers update permission (#384)
* fix(rbac): Restore listeners/finalizers update permission Without the `listeners/finalizers` `update` rule, the listener operator is unable to set `metadata.ownerReferences[].blockOwnerDeletion` on the Service (or other) resource. * Update description Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com>
1 parent 9ecaad8 commit a94d734

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

deploy/helm/listener-operator/templates/roles.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,15 @@ rules:
175175
- listeners/status
176176
verbs:
177177
- patch
178+
# Required by Kubernetes to allow setting blockOwnerDeletion on resources (e.g. Services)
179+
# owned by a Listener. This is needed when the OwnerReferencesPermissionEnforcement admission
180+
# controller is enabled (which is by default in OpenShift)
181+
- apiGroups:
182+
- listeners.stackable.tech
183+
resources:
184+
- listeners/finalizers
185+
verbs:
186+
- update
178187
# PodListeners record the resolved listener addresses for each volume mounted in a Pod.
179188
# Created by the CSI node driver when a Pod first mounts a Listener volume, then patched
180189
# to add entries for additional volumes.

0 commit comments

Comments
 (0)