Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions charts/tau-core-controller/kustomize/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,15 @@ rules:
- apiGroups: ["scheduling.k8s.io"]
resources: ["priorityclasses"]
verbs: ["get", "list", "watch"]
- apiGroups: ["batch"]
resources: ["jobs"]
verbs: ["get", "list", "watch"]
- apiGroups: ["apps"]
resources: ["deployments"]
verbs: ["get", "list", "watch"]
- apiGroups: ["ray.io"]
resources: ["rayjobs", "rayservices"]
verbs: ["get", "list", "watch"]
- apiGroups: ["kueue.x-k8s.io"]
resources: ["workloads"]
verbs: ["get", "list", "watch"]
Expand Down
9 changes: 9 additions & 0 deletions charts/tau-core-controller/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,15 @@ rules:
- apiGroups: ["scheduling.k8s.io"]
resources: ["priorityclasses"]
verbs: ["get", "list", "watch"]
- apiGroups: ["batch"]
resources: ["jobs"]
verbs: ["get", "list", "watch"]
- apiGroups: ["apps"]
resources: ["deployments"]
verbs: ["get", "list", "watch"]
- apiGroups: ["ray.io"]
resources: ["rayjobs", "rayservices"]
verbs: ["get", "list", "watch"]
- apiGroups: ["kueue.x-k8s.io"]
resources: ["workloads"]
verbs: ["get", "list", "watch"]
Expand Down
24 changes: 24 additions & 0 deletions charts/tau-core-controller/tests/rbac_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,30 @@ suite: Researcher RayService permissions
templates:
- templates/rbac.yaml
tests:
- it: grants the controller read-only source Job access for workspace drain checks
asserts:
- contains:
path: rules
content:
apiGroups: ["apps"]
resources: ["deployments"]
verbs: ["get", "list", "watch"]
documentIndex: 2
- contains:
path: rules
content:
apiGroups: ["batch"]
resources: ["jobs"]
verbs: ["get", "list", "watch"]
documentIndex: 2
- contains:
path: rules
content:
apiGroups: ["ray.io"]
resources: ["rayjobs", "rayservices"]
verbs: ["get", "list", "watch"]
documentIndex: 2

- it: grants RayJob and RayService lifecycle permissions to the researcher role
documentSelector:
path: metadata.name
Expand Down
Loading
Loading