Skip to content

feat(kyverno): enhance error pattern handling with inclusion/exclusio…#24

Merged
filippolmt merged 5 commits intomainfrom
feat/enhance_kyverno_error_pattern
Feb 4, 2026
Merged

feat(kyverno): enhance error pattern handling with inclusion/exclusio…#24
filippolmt merged 5 commits intomainfrom
feat/enhance_kyverno_error_pattern

Conversation

@filippolmt
Copy link
Copy Markdown
Contributor

…n options

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_extra with error_patterns_include and error_patterns_exclude for 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.

@filippolmt filippolmt force-pushed the feat/enhance_kyverno_error_pattern branch from 6ece5c8 to 393d173 Compare February 4, 2026 13:19
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

@Stevesibilia Stevesibilia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@filippolmt filippolmt merged commit 0619434 into main Feb 4, 2026
1 check passed
@filippolmt filippolmt deleted the feat/enhance_kyverno_error_pattern branch February 4, 2026 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants