You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
controller panic after 20 times syncing sensor
To Reproduce
Steps to reproduce the behavior:
stop signal deploy
wait 20 times retry
See error
the error is produce here, It should not sendMessage if user not config Spec.Escalation.
if err != nil {
// now let's escalate the sensor
// the context should have the most up-to-date version
log.Infof("escalating sensor to level %s via %s message", ctx.s.Spec.Escalation.Level, ctx.s.Spec.Escalation.Message.Stream.Type)
err := sendMessage(&ctx.s.Spec.Escalation.Message)
if err != nil {
log.Panicf("failed escalating sensor '%s'", key)
}
}
@fatkun thanks for the issue. this looks like an easy fix to just check if the configured sensor has a non nil escalation policy. I'll push up a branch with a fix!
Describe the bug
controller panic after 20 times syncing sensor
To Reproduce
Steps to reproduce the behavior:
the error is produce here, It should not sendMessage if user not config Spec.Escalation.
Expected behavior
It should not sendMessage if user not config Spec.Escalation.
The text was updated successfully, but these errors were encountered: