Skip to content

Commit

Permalink
feature(agent): add permissions for reporting Kubernetes events to K8s (
Browse files Browse the repository at this point in the history
#1298)

Signed-off-by: thesw4rm <[email protected]>
Co-authored-by: Marco Vito Moscaritolo <[email protected]>
  • Loading branch information
thesw4rm and mavimo authored Oct 30, 2023
1 parent 6158466 commit 1fca530
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ sources:
- https://app.sysdigcloud.com/#/settings/user
- https://github.com/draios/sysdig
type: application
version: 1.14.2
version: 1.15.0
7 changes: 7 additions & 0 deletions charts/agent/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ rules:
- get
- list
- watch
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
- apiGroups:
- apps
resources:
Expand Down
13 changes: 13 additions & 0 deletions charts/agent/tests/clusterrole_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,16 @@ tests:
- RELEASE-NAME-agent
verbs:
- "use"

- it: Test Events can be created in kubernetes
asserts:
- contains:
path: rules
content:
apiGroups:
- ""
resources:
- "events"
verbs:
- "create"
- "patch"

0 comments on commit 1fca530

Please sign in to comment.