-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat: add aggregated label to cluster role #50
feat: add aggregated label to cluster role #50
Conversation
a1cb0cf
to
b4f6e22
Compare
b4f6e22
to
ac54307
Compare
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.
merge viewer and editor into one file, make it more clear and tidy
metadata: | ||
name: raycluster-viewer-role | ||
labels: | ||
rbac.authorization.k8s.io/aggregate-to-view: "true" |
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.
according to https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go#L290C1-L291C1, and https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go#L280 view clusterrole will aggregated to edit clusterrole, and edit clusterrole will aggregated to admin clusterrole, so only rbac.authorization.k8s.io/aggregate-to-view is enough.
- ray.io | ||
resources: | ||
- rayjobs | ||
- rayjobs/status |
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.
only operator can update/patch status subresource.
115b6fe
to
31ec5fc
Compare
@kevin85421 @andrewsykim hello, Do you have time to take a look? |
Signed-off-by: j4ckstraw <[email protected]>
31ec5fc
to
ce8505f
Compare
Hi @j4ckstraw, this repository is only updated whenever KubeRay is released. Could you open the PR on the KubeRay repository instead? |
fix #48
see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#aggregated-clusterroles
see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#default-roles-and-role-bindings