Skip to content

Commit

Permalink
Merge pull request #1245 from NVIDIA/rbac-improvements
Browse files Browse the repository at this point in the history
RBAC improvements
  • Loading branch information
cdesiniotis authored Jan 31, 2025
2 parents 93f0ca3 + 623aab6 commit 423734e
Show file tree
Hide file tree
Showing 18 changed files with 118 additions and 86 deletions.
11 changes: 6 additions & 5 deletions assets/state-driver/0210_clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ rules:
- ""
resources:
- pods
- pods/eviction
verbs:
- create
- delete
- get
- list
- patch
- update
- apiGroups:
- ""
resources:
- pods/eviction
verbs:
- create
- apiGroups:
- apps
resources:
Expand Down
17 changes: 14 additions & 3 deletions bundle/manifests/gpu-operator-certified.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,6 @@ spec:
verbs:
- get
- list
- create
- watch
- update
- patch
Expand All @@ -678,8 +677,6 @@ spec:
- ""
resources:
- events
- pods
- pods/eviction
verbs:
- create
- get
Expand All @@ -688,6 +685,20 @@ spec:
- update
- patch
- delete
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- pods/eviction
verbs:
- create
- apiGroups:
- apps
resources:
Expand Down
19 changes: 14 additions & 5 deletions deployments/gpu-operator/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,24 +66,33 @@ rules:
verbs:
- get
- list
- create
- watch
- update
- patch
- apiGroups:
- ""
resources:
- events
- pods
- pods/eviction
verbs:
- create
- get
- list
- watch
- update
- patch
- delete
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- pods/eviction
verbs:
- create
- apiGroups:
- apps
resources:
Expand Down
3 changes: 0 additions & 3 deletions deployments/gpu-operator/templates/clusterrolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ subjects:
- kind: ServiceAccount
name: gpu-operator
namespace: {{ $.Release.Namespace }}
- kind: ServiceAccount
name: node-feature-discovery
namespace: {{ $.Release.Namespace }}
roleRef:
kind: ClusterRole
name: gpu-operator
Expand Down
11 changes: 6 additions & 5 deletions internal/state/testdata/golden/driver-additional-configs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ rules:
- ""
resources:
- pods
- pods/eviction
verbs:
- create
- delete
- get
- list
- patch
- update
- apiGroups:
- ""
resources:
- pods/eviction
verbs:
- create
- apiGroups:
- apps
resources:
Expand Down
11 changes: 6 additions & 5 deletions internal/state/testdata/golden/driver-full-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ rules:
- ""
resources:
- pods
- pods/eviction
verbs:
- create
- delete
- get
- list
- patch
- update
- apiGroups:
- ""
resources:
- pods/eviction
verbs:
- create
- apiGroups:
- apps
resources:
Expand Down
11 changes: 6 additions & 5 deletions internal/state/testdata/golden/driver-gdrcopy-openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ rules:
- ""
resources:
- pods
- pods/eviction
verbs:
- create
- delete
- get
- list
- patch
- update
- apiGroups:
- ""
resources:
- pods/eviction
verbs:
- create
- apiGroups:
- apps
resources:
Expand Down
11 changes: 6 additions & 5 deletions internal/state/testdata/golden/driver-gdrcopy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ rules:
- ""
resources:
- pods
- pods/eviction
verbs:
- create
- delete
- get
- list
- patch
- update
- apiGroups:
- ""
resources:
- pods/eviction
verbs:
- create
- apiGroups:
- apps
resources:
Expand Down
11 changes: 6 additions & 5 deletions internal/state/testdata/golden/driver-gds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ rules:
- ""
resources:
- pods
- pods/eviction
verbs:
- create
- delete
- get
- list
- patch
- update
- apiGroups:
- ""
resources:
- pods/eviction
verbs:
- create
- apiGroups:
- apps
resources:
Expand Down
11 changes: 6 additions & 5 deletions internal/state/testdata/golden/driver-minimal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ rules:
- ""
resources:
- pods
- pods/eviction
verbs:
- create
- delete
- get
- list
- patch
- update
- apiGroups:
- ""
resources:
- pods/eviction
verbs:
- create
- apiGroups:
- apps
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ rules:
- ""
resources:
- pods
- pods/eviction
verbs:
- create
- delete
- get
- list
- patch
- update
- apiGroups:
- ""
resources:
- pods/eviction
verbs:
- create
- apiGroups:
- apps
resources:
Expand Down
11 changes: 6 additions & 5 deletions internal/state/testdata/golden/driver-precompiled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ rules:
- ""
resources:
- pods
- pods/eviction
verbs:
- create
- delete
- get
- list
- patch
- update
- apiGroups:
- ""
resources:
- pods/eviction
verbs:
- create
- apiGroups:
- apps
resources:
Expand Down
11 changes: 6 additions & 5 deletions internal/state/testdata/golden/driver-rdma-hostmofed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ rules:
- ""
resources:
- pods
- pods/eviction
verbs:
- create
- delete
- get
- list
- patch
- update
- apiGroups:
- ""
resources:
- pods/eviction
verbs:
- create
- apiGroups:
- apps
resources:
Expand Down
11 changes: 6 additions & 5 deletions internal/state/testdata/golden/driver-rdma.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ rules:
- ""
resources:
- pods
- pods/eviction
verbs:
- create
- delete
- get
- list
- patch
- update
- apiGroups:
- ""
resources:
- pods/eviction
verbs:
- create
- apiGroups:
- apps
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ rules:
- ""
resources:
- pods
- pods/eviction
verbs:
- create
- delete
- get
- list
- patch
- update
- apiGroups:
- ""
resources:
- pods/eviction
verbs:
- create
- apiGroups:
- apps
resources:
Expand Down
11 changes: 6 additions & 5 deletions internal/state/testdata/golden/driver-vgpu-host-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ rules:
- ""
resources:
- pods
- pods/eviction
verbs:
- create
- delete
- get
- list
- patch
- update
- apiGroups:
- ""
resources:
- pods/eviction
verbs:
- create
- apiGroups:
- apps
resources:
Expand Down
11 changes: 6 additions & 5 deletions internal/state/testdata/golden/driver-vgpu-licensing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ rules:
- ""
resources:
- pods
- pods/eviction
verbs:
- create
- delete
- get
- list
- patch
- update
- apiGroups:
- ""
resources:
- pods/eviction
verbs:
- create
- apiGroups:
- apps
resources:
Expand Down
Loading

0 comments on commit 423734e

Please sign in to comment.