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

Missing nodes/finalizers permisisons #26

Open
manfuin opened this issue Jul 5, 2022 · 1 comment
Open

Missing nodes/finalizers permisisons #26

manfuin opened this issue Jul 5, 2022 · 1 comment

Comments

@manfuin
Copy link

manfuin commented Jul 5, 2022

At least when running on the later OKD, controller failed to create a Jobs due to missing nodes/finalizers permisisons.
Adding following to RBAC:

  - apiGroups: [""]
    resources: ["nodes/finalizers"]
    verbs: ["list", "watch", "get", "delete", "update", "patch"]

fixes the issue. Might be less verbs needed to more strict compliance.

@manfuin
Copy link
Author

manfuin commented Jul 5, 2022

after further testing it is turned out "jobs/finalizers" permissions needs to be added as well for after-hook, otherwise it failed to create job with the same error:

E0705 22:00:55.312683 1 job_controller.go:272] Failed to create new Job : jobs.batch "fence--after-hook" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: ,

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

1 participant