From 0508a97c790c9d1c501351546cd5cc87e8051598 Mon Sep 17 00:00:00 2001 From: Dave Lowe Date: Thu, 5 Jan 2023 20:45:32 +0000 Subject: [PATCH 1/2] don't use legacy slack config Signed-off-by: Dave Lowe --- content/en/flux/guides/notifications.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/content/en/flux/guides/notifications.md b/content/en/flux/guides/notifications.md index 5ca853d84..8c64374b8 100644 --- a/content/en/flux/guides/notifications.md +++ b/content/en/flux/guides/notifications.md @@ -31,11 +31,13 @@ First create a secret with your Slack incoming webhook: ```sh kubectl -n flux-system create secret generic slack-url \ ---from-literal=address=https://hooks.slack.com/services/YOUR/SLACK/WEBHOOK +--from-literal=token=YOUR-SLACK-BOT-APP-TOKEN ``` -Note that the secret must contain an `address` field, -it can be a Slack, Microsoft Teams, Discord or Rocket webhook URL. +{{% alert color="info" title="Alert Provider Configuration" %}} +Note that for token based providers (Slack, Telegram) the secret must contain a `token` field, for address based providers (Teams, Discord) the secret must contain an `address` field. See [Notification>Provider](https://fluxcd.io/flux/components/notification/provider/) section for more details. +{{% /alert %}} + Create a notification provider for Slack by referencing the above secret: From f7e665bd6e6dfce12c771360af2dede73f9994a0 Mon Sep 17 00:00:00 2001 From: Dave Lowe Date: Thu, 5 Jan 2023 21:04:10 +0000 Subject: [PATCH 2/2] tweak Signed-off-by: Dave Lowe --- content/en/flux/guides/notifications.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/flux/guides/notifications.md b/content/en/flux/guides/notifications.md index 5ca853d84..698e32d0d 100644 --- a/content/en/flux/guides/notifications.md +++ b/content/en/flux/guides/notifications.md @@ -27,7 +27,7 @@ The notification controller is part of the default Flux installation. ## Define a provider -First create a secret with your Slack incoming webhook: +First create a secret with your Slack Bot token: ```sh kubectl -n flux-system create secret generic slack-url \