Reloader icon indicating copy to clipboard operation
Reloader copied to clipboard

Reloader not sending Alerts to slack when it triggers a rolling upgrade

Open MrAbaddon opened this issue 2 years ago • 3 comments

Hi, I'm using reloader helm chart v1.0.36.

I have a slack app and enabled webhooks. I've reinstalled the app in the slack workspace and gave access to correct channel to receive the messages. I made a curl command in console to test if webhook was working and I could see the message arriving to slack channel.

curl -X POST -H 'Content-type: application/json' --data '{"text":"Hello, World!"}' https://hooks.slack.com/services/XXXXXXXXX/YYYYYYYYYYY/XXXXXXXXXXXXXXXXXXXXXXXXX

I've added the env vars to values:

        reloader:
          reloadStrategy: annotations
          env:
            secret:
              ALERT_ON_RELOAD: "true"
              ALERT_SINK: "slack"
              ALERT_WEBHOOK_URL: "https://hooks.slack.com/services/XXXXXXXXX/YYYYYYYYYYY/XXXXXXXXXXXXXXXXXXXXXXXXX"
              ALERT_ADDITIONAL_INFO: "Environment: Dev"

I make a change in a configmap and I can see in logs the change takuing effect:

time="2023-08-23T16:10:43Z" level=info msg="Changes detected in 'app-env-vars' of type 'CONFIGMAP' in namespace 'app', Updated 'api' of type 'Deployment' in namespace 'app'"
time="2023-08-23T16:10:43Z" level=info msg="Changes detected in 'app-env-vars' of type 'CONFIGMAP' in namespace 'app', Updated 'web' of type 'Deployment' in namespace 'app'"

I can see new pods restarting but no notification arrives to slack. Anyone has the same Issue?

Regards, Bruno Neves

MrAbaddon avatar Aug 23 '23 16:08 MrAbaddon

Just leaving a comment that this was discussed in Stakater Slack before creating this issue.

karl-johan-grahn avatar Sep 06 '23 08:09 karl-johan-grahn

Hello. Any feedback on this?

MrAbaddon avatar Sep 18 '23 08:09 MrAbaddon

+1 on this one as im experiencing the same issue

mecostav avatar Oct 10 '23 09:10 mecostav