Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add argument to invert the behavior of alert-filter-regexp #786

Merged
merged 2 commits into from
Aug 14, 2023

Conversation

jimliming
Copy link
Contributor

Adding "--alert-filter-match-only" argument which inverts the behavior of "alert-filter-regexp". When alert-filter-match-only=true, kured will block on any active alerts that match the regexp defined in 'alert-filter-regexp'

A use case for this is:
Fire alerts if the cluster is becoming unhealthy (a % of nodes are no longer == Ready). Immediately prevent kured from continuing to drain and reboot.

Signed-off-by: Jim Liming <james.k.liming@gmail.com>
ckotzbauer
ckotzbauer previously approved these changes Aug 2, 2023
Signed-off-by: Christian Kotzbauer <git@ckotzbauer.de>
@ckotzbauer
Copy link
Member

@jimliming I just pushed some small code-improvements and unit-tests to simplify things and to not ignore the --alert-firing-only flag.

@ckotzbauer ckotzbauer added this to the 1.14.0 milestone Aug 14, 2023
@jimliming
Copy link
Contributor Author

makes sense - good catch on alert-firing-only

@ckotzbauer ckotzbauer merged commit 9a4b8fd into kubereboot:main Aug 14, 2023
10 of 11 checks passed
@ckotzbauer ckotzbauer mentioned this pull request Aug 19, 2023
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.

None yet

2 participants