Commit 4d7e726
authored
Fix event recorder interface migration (#4896)
* Fix event recorder interface migration
The migration from `controller-runtime`'s `record.EventRecorder` to
`events.EventRecorder` seems to have changed the type of events
generated, which led to permissions errors when recording events.
This commit updates Fleet's gitOps RBAC to take that new event type into
account.
* Add regression end-to-end test for event generation
Single-cluster end-to-end tests for GitRepo deployments now validate
that `GotNewCommit` events are generated, which should help catch future
event recording-related issues.1 parent b210c9f commit 4d7e726
2 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
155 | 161 | | |
156 | 162 | | |
157 | 163 | | |
| |||
0 commit comments