-
Notifications
You must be signed in to change notification settings - Fork 218
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
Need to add "coordination.k8s.io" and "-leases" to clusterrole #508
Comments
@VincentDu2021 Thanks for creating this! |
Yeah, I see in the /manifests/base/mpi-operator.yaml you got them included.
|
We need "*" for the verbs in |
|
Can you use |
You are correct, @tenzen-y . Using image with "master" tag, if I only included "get, list, update", I'd get error:
Notice I changed namespace, after adding "create" verb into the list, this error is gone, but since we need create it makes sense to add "delete" etc., which basically equals using "*". I think this issue can be resolved. Thanks for your assistance. |
I would close this issue once we merge #508 to the master branch. Thanks for your report. |
/assign |
Seeing this error after applying the mpi-operator/deploy/v2beta1/mpi-operator.yaml:
E0126 19:02:25.423446 1 leaderelection.go:330] error retrieving resource lock mpi-operator/mpi-operator: leases.coordination.k8s.io "mpi-operator" is forbidden: User "system:serviceaccount:mpi-operator:mpi-operator" cannot get resource "leases" in API group "coordination.k8s.io" in the namespace "mpi-operator"
After adding the 'coordination.k8s.io' and 'leases' into the clusterrole, the issue is gone. I can submit a PR if you guys prefer.
The text was updated successfully, but these errors were encountered: