Skip to content

Commit

Permalink
Merge pull request #532 from shiftstack/remove-redundant-roles
Browse files Browse the repository at this point in the history
NO-JIRA: Remove redundant clusterrole rules
  • Loading branch information
openshift-merge-bot[bot] authored Oct 30, 2024
2 parents aa574fc + 18b5916 commit 6390211
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 117 deletions.
17 changes: 2 additions & 15 deletions assets/csidriveroperators/aws-ebs/base/05_clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -280,21 +280,8 @@ rules:
- watch
# Allow kube-rbac-proxy to create TokenReview to be able to authenticate Prometheus when collecting metrics
- apiGroups:
- "authentication.k8s.io"
- authentication.k8s.io
resources:
- "tokenreviews"
- tokenreviews
verbs:
- "create"
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete

Original file line number Diff line number Diff line change
Expand Up @@ -283,15 +283,3 @@ rules:
- tokenreviews
verbs:
- create
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
Original file line number Diff line number Diff line change
Expand Up @@ -283,15 +283,3 @@ rules:
- tokenreviews
verbs:
- create
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
18 changes: 3 additions & 15 deletions assets/csidriveroperators/azure-disk/base/06_clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,6 @@ rules:
- create
- watch
- delete
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ''
resources:
Expand Down Expand Up @@ -302,8 +290,8 @@ rules:
- watch
# Allow kube-rbac-proxy to create TokenReview to be able to authenticate Prometheus when collecting metrics
- apiGroups:
- "authentication.k8s.io"
- authentication.k8s.io
resources:
- "tokenreviews"
- tokenreviews
verbs:
- "create"
- create
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,6 @@ rules:
- create
- watch
- delete
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,6 @@ rules:
- create
- watch
- delete
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
Expand Down
18 changes: 3 additions & 15 deletions assets/csidriveroperators/azure-file/base/06_clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,6 @@ rules:
- create
- watch
- delete
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ''
resources:
Expand Down Expand Up @@ -306,8 +294,8 @@ rules:
- watch
# Allow kube-rbac-proxy to create TokenReview to be able to authenticate Prometheus when collecting metrics
- apiGroups:
- "authentication.k8s.io"
- authentication.k8s.io
resources:
- "tokenreviews"
- tokenreviews
verbs:
- "create"
- create
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,6 @@ rules:
- create
- watch
- delete
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,6 @@ rules:
- create
- watch
- delete
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
Expand Down

0 comments on commit 6390211

Please sign in to comment.