-
Notifications
You must be signed in to change notification settings - Fork 431
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
Fix finalizer typo and re-create manifests #631
Fix finalizer typo and re-create manifests #631
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is indeed a typo! Thanks for the fix! the change looks good to me
Just a quick double check @Jeffwan - I see the consistency check for the helm chart rbac is failing. Is that supposed to happen due to the changes? Thanks a lot in advance. |
I will check the consistency check. RBAC YAML files in |
RBAC files in the Helm charts need to be updated manually. Once that's done, you can run See https://github.com/ray-project/kuberay/blob/master/ray-operator/DEVELOPMENT.md#consistency-check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Match up Helm roles to get the helm rbac consistency check to pass.
Thank you both @kevin85421 and @DmitriGekhtman for being so kind and pointing me towards the right direction. From the docs I had imagined something had to be done but I didn't understand they had to be synchronized manually, I assumed there was an automated process in place (and that I had missed some command). Maybe it could help new users if it was made more explicit in the docs 😃 |
Good idea! I will update the doc. Thank you for pointing this out! |
...I failed to read the comment thread, sorry for the redundant info :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
This is not the first time we've burned ourselves with singular vs. plural in rbac...
These changes address issue ray-project#630 When trying to create one of the example RayCluster on OpenShift, it will fail with the operator reporting "cannot set blockOwnerDeletion if an ownerReference refers to a resource you can’t set finalizers on:". As per https://sdk.operatorframework.io/docs/faqs/#after-deploying-my-operator-why-do-i-see-errors-like-is-forbidden-cannot-set-blockownerdeletion-if-an-ownerreference-refers-to-a-resource-you-cant-set-finalizers-on-, we were able to fix the issue by applying the new role.yaml that is created running make manifests after applying the changes in this PR.
Why are these changes needed?
These changes address issue #630
When trying to create one of the example
RayCluster
on OpenShift, it will fail with the operator reporting "cannot set blockOwnerDeletion if an ownerReference refers to a resource you can’t set finalizers on:".As per https://sdk.operatorframework.io/docs/faqs/#after-deploying-my-operator-why-do-i-see-errors-like-is-forbidden-cannot-set-blockownerdeletion-if-an-ownerreference-refers-to-a-resource-you-cant-set-finalizers-on-, we were able to fix the issue by applying the new
role.yaml
that is created runningmake manifests
after applying the changes in this PR.Related issue number
Closes #630
Checks
As mentioned, this PR was tested by applying the contents of the
role.yaml
file to the kuberay-operatorClusterRole