Skip to content

Commit

Permalink
update kubearmorclusterrole permissions for nodes,configmaps,pods
Browse files Browse the repository at this point in the history
Signed-off-by: Aryan-sharma11 <aryan1126.sharma@gmail.com>
  • Loading branch information
Aryan-sharma11 committed Aug 12, 2024
1 parent 433a52d commit ca48c1b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
7 changes: 6 additions & 1 deletion deployments/get/objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,14 @@ func GetClusterRole() *rbacv1.ClusterRole {
Rules: []rbacv1.PolicyRule{
{
APIGroups: []string{""},
Resources: []string{"pods", "nodes", "namespaces", "configmaps"},
Resources: []string{"namespaces"},
Verbs: []string{"get", "list", "watch", "update"},
},
{
APIGroups: []string{""},
Resources: []string{"pods", "nodes", "configmaps"},
Verbs: []string{"get", "list", "watch"},
},
{
APIGroups: []string{"apps"},
Resources: []string{"deployments", "replicasets", "daemonsets", "statefulsets"},
Expand Down
11 changes: 9 additions & 2 deletions deployments/helm/KubeArmor/templates/RBAC/roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,25 @@ kind: ClusterRole
metadata:
name: kubearmor-clusterrole
rules:
- apiGroups:
- ""
resources:
- namespaces
verbs:
- get
- list
- watch
- update
- apiGroups:
- ""
resources:
- pods
- nodes
- namespaces
- configmaps
verbs:
- get
- list
- watch
- update
- apiGroups:
- apps
resources:
Expand Down

0 comments on commit ca48c1b

Please sign in to comment.