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

Fix kured slack notification missing username #63

Closed
bengtfredh opened this issue Mar 25, 2022 · 8 comments
Closed

Fix kured slack notification missing username #63

bengtfredh opened this issue Mar 25, 2022 · 8 comments
Assignees
Labels
area/k8s Issues related to k8s infrastructure (Sebastian,Bengt)

Comments

@bengtfredh
Copy link
Member

bengtfredh commented Mar 25, 2022

Kured slack notification do not send with username. All messages get added as user Kured.

Looks like this need to be changed:
--slack-hook-url string slack hook URL for reboot notfications [deprecated in favor of --notify-url]

Looks like this is a know issue:
kubereboot/kured#482

Probably smart to upgrade kured to latest version and change to use --notify-url. Check if this help the issue.

@bengtfredh bengtfredh added the area/k8s Issues related to k8s infrastructure (Sebastian,Bengt) label Mar 25, 2022
@bengtfredh bengtfredh self-assigned this Mar 25, 2022
@bengtfredh
Copy link
Member Author

Latest kured chart version is 2.12.0 (16 Mar, 2022)

@bengtfredh
Copy link
Member Author

Bumped kured chart to v2.12.0 at/tt/yt

@bengtfredh
Copy link
Member Author

Upgrade did not help. Same result - slack username is not respected and message show as sendt from Kured.
Will try to change to use --notify-url next

@bengtfredh
Copy link
Member Author

Discovered chart version now is 2.12.1 with app version 1.9.2.
Will upgrade and test.

@bengtfredh
Copy link
Member Author

Upgrade to 2.12.1 did not help.
Next I try to change from --slack-hook-url to --notify-url

@bengtfredh
Copy link
Member Author

Switch to --notify-url did not make any difference. Slack username not respected.

@bengtfredh
Copy link
Member Author

Done some reading, and there is changes in kured and shoutrrr. We probably need to move to shoutrrr new url format. Like descibed here:
https://containrrr.dev/shoutrrr/v0.5/services/slack/

For now we can probably use following format, which will be upgraded to new format by shoutrrr.

--notify-url=slack://watchtower@token-a/token-b/token-c

@bengtfredh
Copy link
Member Author

This url worked as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/k8s Issues related to k8s infrastructure (Sebastian,Bengt)
Projects
None yet
Development

No branches or pull requests

2 participants