Skip to content

Commit

Permalink
Refactor event handler
Browse files Browse the repository at this point in the history
- Break down the EventServer.handleEvent() implementation into multiple
  smaller functions which are extensively tested on their own.
  - New implementation of filter Alerts for Event
  - New implementation of Event matches Alert
- Remove any readiness check on Alert or Provider.
- Add kubebuilder marker for generating RBAC permissions to create and
  patch events.
- Convert the event handler test from controllers/ dir to work with
  just EventServer without any reconciler, keeping all the test cases
  and slightly modified test set up code.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
  • Loading branch information
darkowlzz committed Jun 5, 2023
1 parent 88c83a2 commit 7695097
Show file tree
Hide file tree
Showing 7 changed files with 1,591 additions and 259 deletions.
Loading

0 comments on commit 7695097

Please sign in to comment.