Skip to content

Commit

Permalink
add missing resources to kubescape role
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
  • Loading branch information
matthyx committed Dec 12, 2023
1 parent 5122891 commit f910440
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: {{ .Values.kubescape.name }}
rules:
- apiGroups: [""]
resources: ["pods", "pods/proxy", "namespaces", "secrets", "nodes", "configmaps", "services", "serviceaccounts", "endpoints", "persistentvolumeclaims", "limitranges", "replicationcontrollers", "podtemplates", "resourcequotas", "events"]
resources: ["pods", "pods/proxy", "namespaces", "secrets", "nodes", "configmaps", "services", "serviceaccounts", "endpoints", "persistentvolumes", "persistentvolumeclaims", "limitranges", "replicationcontrollers", "podtemplates", "resourcequotas", "events"]
verbs: ["get", "watch", "list"]
- apiGroups: ["admissionregistration.k8s.io"]
resources: ["mutatingwebhookconfigurations", "validatingwebhookconfigurations"]
Expand Down Expand Up @@ -45,7 +45,7 @@ rules:
resources: ["clusterroles", "clusterrolebindings", "roles", "rolebindings"]
verbs: ["get", "watch", "list"]
- apiGroups: ["storage.k8s.io"]
resources: ["csistoragecapacities"]
resources: ["csistoragecapacities", "StorageClass"]
verbs: ["get", "watch", "list"]
- apiGroups: ["networking.k8s.io"]
resources: ["ingresses"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,7 @@ matches the snapshot:
- services
- serviceaccounts
- endpoints
- persistentvolumes
- persistentvolumeclaims
- limitranges
- replicationcontrollers
Expand Down Expand Up @@ -866,6 +867,7 @@ matches the snapshot:
- storage.k8s.io
resources:
- csistoragecapacities
- StorageClass
verbs:
- get
- watch
Expand Down

0 comments on commit f910440

Please sign in to comment.