Skip to content

Commit

Permalink
allow config daemon to send events
Browse files Browse the repository at this point in the history
extend config daemon role to send events.
without it, current events mechanism will not work
as k8s api will reject requests.

Signed-off-by: adrianc <adrianc@nvidia.com>
  • Loading branch information
adrianchiris committed Oct 19, 2023
1 parent 305e695 commit 4d153f8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deploy/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ rules:
- 'leases'
verbs:
- '*'
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand Down
7 changes: 7 additions & 0 deletions deployment/sriov-network-operator/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ rules:
- 'leases'
verbs:
- '*'
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand Down

0 comments on commit 4d153f8

Please sign in to comment.