Skip to content

Commit

Permalink
fix: remove unused permissions (tokenreviews, subjectaccessreviews)
Browse files Browse the repository at this point in the history
  • Loading branch information
weisdd committed Jan 31, 2024
1 parent dd8afac commit a138ad7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 36 deletions.
12 changes: 0 additions & 12 deletions deploy/helm/grafana-operator/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,18 +222,6 @@ rules:
- update
- watch
{{- end }}
- apiGroups:
- authentication.k8s.io
resources:
- tokenreviews
verbs:
- create
- apiGroups:
- authorization.k8s.io
resources:
- subjectaccessreviews
verbs:
- create
---
apiVersion: rbac.authorization.k8s.io/v1
kind: {{ if not $namespaceScoped }}Cluster{{ end }}RoleBinding
Expand Down
12 changes: 0 additions & 12 deletions deploy/kustomize/overlays/cluster_scoped/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,18 +201,6 @@ rules:
- list
- update
- watch
- apiGroups:
- authentication.k8s.io
resources:
- tokenreviews
verbs:
- create
- apiGroups:
- authorization.k8s.io
resources:
- subjectaccessreviews
verbs:
- create
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand Down
12 changes: 0 additions & 12 deletions deploy/kustomize/overlays/namespace_scoped/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,18 +202,6 @@ rules:
- list
- update
- watch
- apiGroups:
- authentication.k8s.io
resources:
- tokenreviews
verbs:
- create
- apiGroups:
- authorization.k8s.io
resources:
- subjectaccessreviews
verbs:
- create
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down

0 comments on commit a138ad7

Please sign in to comment.