mirror of
https://github.com/fluxcd/flagger.git
synced 2026-08-29 02:37:31 +00:00
Merge pull request #1105 from SomtochiAma/error-msg
Send warning and error alerts correctly
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user