Skip to content

Commit

Permalink
Merge pull request #737 from NVIDIA/gpuop-app-rbac
Browse files Browse the repository at this point in the history
  • Loading branch information
tariq1890 authored Jun 6, 2024
2 parents d5265c3 + ae994fd commit cd6555b
Show file tree
Hide file tree
Showing 15 changed files with 66 additions and 65 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,14 @@ rules:
resources:
- securitycontextconstraints
verbs:
- '*'
- create
- get
- list
- watch
- update
- patch
- delete
- use
- apiGroups:
- config.openshift.io
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@ rules:
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- '*'
- get
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down
5 changes: 1 addition & 4 deletions internal/state/testdata/golden/driver-full-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@ rules:
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- '*'
- get
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down
5 changes: 1 addition & 4 deletions internal/state/testdata/golden/driver-gdrcopy-openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@ rules:
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- '*'
- get
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down
5 changes: 1 addition & 4 deletions internal/state/testdata/golden/driver-gdrcopy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@ rules:
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- '*'
- get
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down
5 changes: 1 addition & 4 deletions internal/state/testdata/golden/driver-gds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@ rules:
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- '*'
- get
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down
5 changes: 1 addition & 4 deletions internal/state/testdata/golden/driver-minimal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@ rules:
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- '*'
- get
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@ rules:
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- '*'
- get
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down
5 changes: 1 addition & 4 deletions internal/state/testdata/golden/driver-precompiled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@ rules:
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- '*'
- get
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down
5 changes: 1 addition & 4 deletions internal/state/testdata/golden/driver-rdma-hostmofed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@ rules:
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- '*'
- get
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down
5 changes: 1 addition & 4 deletions internal/state/testdata/golden/driver-rdma.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@ rules:
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- '*'
- get
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down
5 changes: 1 addition & 4 deletions internal/state/testdata/golden/driver-vgpu-host-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@ rules:
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- '*'
- get
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down
5 changes: 1 addition & 4 deletions internal/state/testdata/golden/driver-vgpu-licensing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@ rules:
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- '*'
- get
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down
5 changes: 1 addition & 4 deletions manifests/state-driver/0210_clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ rules:
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- '*'
- get

0 comments on commit cd6555b

Please sign in to comment.