feat(kyverno): enhance error pattern handling with inclusion/exclusio…#24
feat(kyverno): enhance error pattern handling with inclusion/exclusio…#24filippolmt merged 5 commits intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR enhances Kyverno monitoring alert configuration by replacing the generic filter_extra variable with more structured error_patterns_include and error_patterns_exclude options. This allows users to customize which error patterns trigger alerts by excluding unwanted default patterns or adding custom patterns.
Changes:
- Replaced
filter_extrawitherror_patterns_includeanderror_patterns_excludefor more structured error pattern customization - Refactored log filter generation to build error pattern conditions dynamically from configurable lists
- Added validation to ensure only valid default patterns can be excluded
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| variables.tf | Removed filter_extra, added error_patterns_include and error_patterns_exclude with validation logic |
| kyverno.tf | Refactored to use pattern lists instead of hardcoded filter conditions, added pattern filtering logic |
| examples/main.tf | Updated example to demonstrate new pattern inclusion/exclusion usage |
| README.md | Updated documentation table to reflect new variable structure |
| CHANGELOG.md | Documented breaking change and migration guidance |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
6ece5c8 to
393d173
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 7 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…n options