Skip to content

Commit

Permalink
Send warning and error alerts correctly
Browse files Browse the repository at this point in the history
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
  • Loading branch information
somtochiama committed Feb 8, 2022
1 parent 7071d42 commit 9796903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (c *Controller) alert(canary *flaggerv1.Canary, message string, metadata bo
if severity == alert.Severity {
shouldAlert = true
}
if severity == flaggerv1.SeverityWarn && alert.Severity == flaggerv1.SeverityError {
if severity == flaggerv1.SeverityError && alert.Severity == flaggerv1.SeverityWarn {
shouldAlert = true
}
}
Expand Down

0 comments on commit 9796903

Please sign in to comment.