Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MrAbaddon opened this issue Aug 23, 2023 · 3 comments
Open
Labels
kind/bug Something isn't working

Comments

@MrAbaddon
Copy link

MrAbaddon commented Aug 23, 2023

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

@karl-johan-grahn karl-johan-grahn added the kind/bug Something isn't working label Aug 23, 2023
@karl-johan-grahn
Copy link
Contributor

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

@MrAbaddon
Copy link
Author

Hello. Any feedback on this?

@mecostav
Copy link

+1 on this one as im experiencing the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants