Commit 1c7c847
fix: Validate InvolvedObject name before API call
Fixes #10
- Add validation to check if reference.Name is empty before attempting
Kubernetes API call in GetObjectMetadata
- Return empty ObjectMetadata{} without error when name is empty
- Prevents "name is required" errors from flooding logs
- Allows events with empty InvolvedObject names to be processed normally
without metadata enrichment
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent c535be4 commit 1c7c847
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
| |||
0 commit comments