Skip to content

feat(discord): add global and secret file for discord notifier#3308

Closed
budimanjojo wants to merge 1 commit intoprometheus:mainfrom
budimanjojo:main
Closed

feat(discord): add global and secret file for discord notifier#3308
budimanjojo wants to merge 1 commit intoprometheus:mainfrom
budimanjojo:main

Conversation

@budimanjojo
Copy link

This enable the ability for discord notifier to use a file instead of plain secret.
This also adds the global.discord_webhook_url and global.discord_webhook_url_file

Copy link
Member

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to check that both DiscordWebhookURL and DiscordWebhookURLFile aren't defined at the same time in the global section.

@simonpasquier
Copy link
Member

I'm not sure about the CircleCI error but could you try rebasing your PR on top of main? Adding some unit tests would be appreciated too (you can look at notify/opsgenie/opsgenie_test.go for inspiration).

@budimanjojo
Copy link
Author

sorry I messed up the rebase rofl. I'm trying

Signed-off-by: budimanjojo <budimanjojo@gmail.com>
@budimanjojo
Copy link
Author

is this good now?

Copy link
Member

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but I'm not sure what's about Circle CI not kicking in :-/

@LucaDev
Copy link
Contributor

LucaDev commented Feb 19, 2024

This feature was introduced by #3555

@budimanjojo
Copy link
Author

Thanks for the information @LucaDev! Closing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants