Skip to content
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

[CC Mgr VGPU Device Mgr] move pods access permissions from ClusterRole to Role #749

Merged
merged 1 commit into from
Jun 12, 2024
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
8 changes: 8 additions & 0 deletions assets/state-cc-manager/0200_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,11 @@ rules:
- use
resourceNames:
- privileged
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- list
- watch
1 change: 0 additions & 1 deletion assets/state-cc-manager/0210_clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ rules:
- ""
resources:
- nodes
- pods
verbs:
- get
- list
Expand Down
22 changes: 22 additions & 0 deletions assets/state-vgpu-device-manager/0200_role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: nvidia-vgpu-device-manager
namespace: "FILLED BY THE OPERATOR"
rules:
- apiGroups:
- security.openshift.io
resources:
- securitycontextconstraints
verbs:
- use
resourceNames:
- privileged
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- list
- watch
2 changes: 0 additions & 2 deletions assets/state-vgpu-device-manager/0210_clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ rules:
- ""
resources:
- nodes
- pods
- pods/eviction
cdesiniotis marked this conversation as resolved.
Show resolved Hide resolved
verbs:
- get
- list
Expand Down
13 changes: 13 additions & 0 deletions assets/state-vgpu-device-manager/0300_rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: nvidia-vgpu-device-manager
namespace: "FILLED BY THE OPERATOR"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: nvidia-vgpu-device-manager
subjects:
- kind: ServiceAccount
name: nvidia-vgpu-device-manager
namespace: "FILLED BY THE OPERATOR"