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 RBAC on finalizers sub-resources when OwnerReferencesPermissionEnforcement admission is enabled #1485

Closed
astefanutti opened this issue Dec 18, 2023 · 1 comment · Fixed by #1486
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@astefanutti
Copy link
Member

What happened:

On clusters, like OpenShift, where the OwnerReferencesPermissionEnforcement admission controller is enabled, reconciliation of workloads failed with the following error message:

"error":"workloads.kueue.x-k8s.io \"pytorchjob-pytorch-simple-7a162\" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: , <nil>"

What you expected to happen:

The Kueue service account should have the required permissions to update the finalizers.

How to reproduce it (as minimally and precisely as possible):

Create a workload on a cluster that has the OwnerReferencesPermissionEnforcement admission controller enabled.

@astefanutti astefanutti added the kind/bug Categorizes issue or PR as related to a bug. label Dec 18, 2023
@astefanutti
Copy link
Member Author

/assign

@astefanutti astefanutti changed the title Missing RBAC on finalizers sub-resources when the OwnerReferencesPermissionEnforcement admission is enabled Missing RBAC on finalizers sub-resources when OwnerReferencesPermissionEnforcement admission is enabled Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant