You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched the issues and found no similar issues.
KubeRay Component
ray-operator
What happened + What you expected to happen
After #1106 and #1162 were merged, I provided the following config combination: rbacEnable: true crNamespacedRbacEnable: false singleNamespaceInstall: true watchNamespace: - ns1
Install KubeRay operator via Helm and provide following config combination: rbacEnable: true crNamespacedRbacEnable: false singleNamespaceInstall: true watchNamespace: - ns1
Observe that KubeRay tries to create a ClusterRoleBinding
Search before asking
KubeRay Component
ray-operator
What happened + What you expected to happen
After #1106 and #1162 were merged, I provided the following config combination:
rbacEnable: true
crNamespacedRbacEnable: false
singleNamespaceInstall: true
watchNamespace:
- ns1
I expected KubeRay to not create cluster-scoped resources and to not create roles and rolebindings in "ns1" namespace. But I observed that KubeRay tries to create ClusterRoleBinding. Looking at the code https://github.com/ray-project/kuberay/blob/master/helm-chart/kuberay-operator/templates/rolebinding.yaml#L1-L2, it will always create a ClusterRoleBinding if rbacEnable is set to true.
Reproduction script
rbacEnable: true
crNamespacedRbacEnable: false
singleNamespaceInstall: true
watchNamespace:
- ns1
Anything else
This problem occurs everytime. I think the logic for creating ClusterRoleBinding should be the same as that for ClusterRole: https://github.com/ray-project/kuberay/blob/master/helm-chart/kuberay-operator/templates/role.yaml#L1C1-L1C1.
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: