Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
If [OwnerReferencesPermissionEnforcement](https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#ownerreferencespermissionenforcement) is turned on, such as on OpenShift, ConfigConnector operator would fail with error `forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on`

Signed-off-by: Tiger Kaovilai <[email protected]>

Limit finalizers role to update verb

Signed-off-by: Tiger Kaovilai <[email protected]>
  • Loading branch information
kaovilai committed Apr 7, 2023
1 parent 174e388 commit fcf3904
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions operator/config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ rules:
- get
- patch
- update
- apiGroups:
- core.cnrm.cloud.google.com
resources:
- configconnectors/finalizers
verbs:
- update
- apiGroups:
- rbac.authorization.k8s.io
resources:
Expand Down

0 comments on commit fcf3904

Please sign in to comment.