Skip to content

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

Merged
ckotzbauer merged 2 commits intokubereboot:mainfrom
jimliming:regex_match_only
Aug 14, 2023
Merged

add argument to invert the behavior of alert-filter-regexp#786
ckotzbauer merged 2 commits intokubereboot:mainfrom
jimliming:regex_match_only

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
@ckotzbauer ckotzbauer requested a review from jackfrancis August 2, 2023 10:25
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
@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.

2 participants