Skip to content

Commit

Permalink
chore(prowler): add in-cluster rbac resources
Browse files Browse the repository at this point in the history
Release-As: 1.8.1
  • Loading branch information
meysam81 committed Jan 2, 2025
1 parent 7bb3621 commit 58fad5d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
11 changes: 11 additions & 0 deletions prowler/base/clusterrole.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: prowler
rules:
- apiGroups: [""]
resources: ["pods", "configmaps", "nodes", "namespaces"]
verbs: ["get", "list", "watch"]
- apiGroups: ["rbac.authorization.k8s.io"]
resources: ["clusterrolebindings", "rolebindings", "clusterroles", "roles"]
verbs: ["get", "list", "watch"]
13 changes: 13 additions & 0 deletions prowler/base/clusterrolebinding.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: prowler
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: prowler
subjects:
- kind: ServiceAccount
name: prowler
namespace: prowler
2 changes: 2 additions & 0 deletions prowler/base/kustomization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ configMapGenerator:
- configs.env

resources:
- clusterrole.yml
- clusterrolebinding.yml
- service.yml
- serviceaccount.yml
- deployment.yml
Expand Down

0 comments on commit 58fad5d

Please sign in to comment.