Skip to content

Commit

Permalink
Fix inconsistent Alertmanager silence behavior for PodDisruptionBudge…
Browse files Browse the repository at this point in the history
…tAtLimit (#3155)

With some versions of Alertamanager the silence creation through the API
does not have a consistent behaviour to the "isTrue" field not being
present. Therefore the regex condition for poddisruptionbudget label
sometimes is a negative match. This commit ensures the condition is
always a positive match.

Signed-off-by: João Vilaça <[email protected]>
  • Loading branch information
machadovilaca authored Nov 13, 2024
1 parent b428ece commit 34b501f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ func (r *Reconciler) ensurePodDisruptionBudgetAtLimitIsSilenced() error {
Value: "PodDisruptionBudgetAtLimit",
},
{
IsEqual: true,
IsRegex: true,
Name: "poddisruptionbudget",
Value: "kubevirt-disruption-budget-.*",
Expand Down

0 comments on commit 34b501f

Please sign in to comment.