Skip to content

Commit

Permalink
[RBAC] Remove unnecessary permissions from the gpu-operator app
Browse files Browse the repository at this point in the history
Signed-off-by: Tariq Ibrahim <[email protected]>
  • Loading branch information
tariq1890 committed Jun 6, 2024
1 parent 91f65cb commit bc400b4
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,40 @@ rules:
- clusterroles
- clusterrolebindings
verbs:
- '*'
- create
- get
- list
- watch
- update
- patch
- delete
- apiGroups:
- ""
resources:
- pods
- services
- endpoints
- persistentvolumeclaims
- events
- configmaps
- secrets
- serviceaccounts
verbs:
- create
- get
- list
- watch
- update
- patch
- delete
- apiGroups:
- ""
resources:
- nodes
verbs:
- '*'
- get
- list
- watch
- update
- patch
- apiGroups:
- ""
resources:
Expand All @@ -51,18 +70,22 @@ rules:
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- '*'
- create
- get
- list
- watch
- update
- patch
- delete
- apiGroups:
- apps
resources:
- controllerrevisions
verbs:
- 'get'
- 'list'
- 'watch'
- get
- list
- watch
- apiGroups:
- monitoring.coreos.com
resources:
Expand All @@ -78,9 +101,19 @@ rules:
- apiGroups:
- nvidia.com
resources:
- '*'
- clusterpolicies
- clusterpolicies/status
- nvidiadrivers
- nvidiadrivers/status
verbs:
- '*'
- create
- get
- list
- watch
- update
- patch
- delete
- deletecollection
- apiGroups:
- scheduling.k8s.io
resources:
Expand All @@ -95,7 +128,13 @@ rules:
resources:
- securitycontextconstraints
verbs:
- '*'
- create
- get
- list
- watch
- update
- patch
- delete
- apiGroups:
- config.openshift.io
resources:
Expand Down

0 comments on commit bc400b4

Please sign in to comment.