Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on #180

Closed
reggie-k opened this issue Dec 30, 2020 · 3 comments

Comments

@reggie-k
Copy link

reggie-k commented Dec 30, 2020

I deployed the latest release using deploy manifests (not the helm chart) on Openshift 4.5

When the operator processes my cr, the following error is observed in the log:

Error creating Role Binding: rolebindings.rbac.authorization.k8s.io "some-definition-some-binding-edit" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: ,

I added the following to the operator clusterrole, but the error persists:

  • apiGroups:
    • rbac.authorization.k8s.io
      resources:
    • rolebindings/finalizers
      verbs:
    • '*'
  • apiGroups:
    • '*'
      resources:
    • deployments/finalizers
    • pods/finalizers
      verbs:
    • '*'
@sudermanjr
Copy link
Member

I don't have access to any openshift clusters to test, but could you try adding this to the RBAC instead? I don't think the issue is access to finalizers on any of the kube-native resources, but just the rbacDefinition CRD

  - apiGroups:
      - rbacmanager.reactiveops.io
    resources:
      - rbacdefinitions/finalizers
    verbs:
      - "*"

I'm only guessing this based on a very short google search and no experience with OpenShift. spotahome/redis-operator#98

@reggie-k
Copy link
Author

Thanks!! That definitely did the trick

@QuingKhaos
Copy link

@sudermanjr shouldn't this get fixed in the Helm chart too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants