Reloader
Reloader copied to clipboard
[BUG] Teams alert not send
Describe the bug
Teams Webhook doesn't work and no logs are displayed (even on trace) that explain whats going on.
To Reproduce
Deploy rescheduler with these values:
reloader:
reloader:
logLevel: trace
deployment:
env:
secret:
ALERT_ON_RELOAD: "true"
ALERT_SINK: teams
ALERT_WEBHOOK_URL: <my-url>
ALERT_ADDITIONAL_INFO: Triggered by Reloader in Kubernetes
resources:
limits:
cpu: 150m
memory: 512Mi
requests:
cpu: 10m
memory: 128Mi
Expected behavior
The webhook should be send to the teams channel or at least some logs should appear to display what the issue is.
Environment
- Operator Version: 1.4.4
- Kubernetes Version: 1.28.15
Hi! Thanks for your report!
It does indeed seem as the error returned is silently ignored.
The culprit seems to reside here.
An initial troubleshooting step could be to iterate and run logrus.Errorf("Error sending alert: %s", err.Error()) on the errors returned on lines 35, 37, and 40 to get some better debug output. :)