Skip to content

Commit

Permalink
Merge branch 'no-star-roles' into 'master'
Browse files Browse the repository at this point in the history
[RBAC] remove the usage of star perms in operand roles

See merge request nvidia/kubernetes/gpu-operator!1095
  • Loading branch information
tariq1890 committed Jun 5, 2024
2 parents 58afc29 + 5907063 commit 0a321eb
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 17 deletions.
5 changes: 1 addition & 4 deletions assets/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
5 changes: 4 additions & 1 deletion assets/state-mig-manager/0200_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ rules:
resources:
- pods
verbs:
- '*'
- get
- list
- watch
- delete
6 changes: 5 additions & 1 deletion assets/state-mig-manager/0210_clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ rules:
resources:
- nodes
verbs:
- '*'
- get
- list
- watch
- update
- patch
4 changes: 3 additions & 1 deletion assets/state-node-status-exporter/0300_clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ rules:
resources:
- nodes
verbs:
- '*'
- get
- list
- watch
13 changes: 10 additions & 3 deletions assets/state-operator-validation/0200_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,18 @@ rules:
resources:
- pods
verbs:
- '*'
- create
- get
- list
- watch
- update
- patch
- delete
- apiGroups:
- apps
resources:
- deployments
- daemonsets
verbs:
- '*'
- get
- list
- watch
10 changes: 3 additions & 7 deletions assets/state-operator-validation/0210_clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ rules:
resources:
- nodes
verbs:
- '*'
- apiGroups:
- nvidia.com
resources:
- clusterpolicies/finalizers
verbs:
- '*'
- get
- list
- watch

0 comments on commit 0a321eb

Please sign in to comment.