generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #832 from epam/ray-rbac
[config/rbac] Add RayJob roles.
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# permissions for end users to edit jobs. | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: kueue-rayjob-editor-role | ||
labels: | ||
rbac.kueue.x-k8s.io/batch-admin: "true" | ||
rbac.kueue.x-k8s.io/batch-user: "true" | ||
rules: | ||
- apiGroups: | ||
- ray.io | ||
resources: | ||
- rayjobs | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- ray.io | ||
resources: | ||
- rayjobs/status | ||
verbs: | ||
- get |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# permissions for end users to view jobs. | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: kueue-rayjob-viewer-role | ||
labels: | ||
rbac.kueue.x-k8s.io/batch-admin: "true" | ||
rbac.kueue.x-k8s.io/batch-user: "true" | ||
rules: | ||
- apiGroups: | ||
- ray.io | ||
resources: | ||
- rayjobs | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- ray.io | ||
resources: | ||
- rayjobs/status | ||
verbs: | ||
- get |