If we want to be notified before or after deploying an application, KubeVela provides integration with notification webhooks, allowing users to send notifications to DingTalk or Slack.
In this guide, you will learn how to send notifications via
webhook-notification in workflow.
Make sure the version of KubeVela is
|slack||Object||Optional, please fulfill its url and message if you want to send Slack messages|
|slack.url||Object||Required, the webhook address of Slack, you can choose to fill it in directly or specify it in secret|
|slack.url.address||String||Optional, directly specify the webhook address of Slack|
|slack.url.fromSecret.name||String||Optional, specify the webhook address of Slack from secret|
|slack.url.fromSecret.key||String||Optional, specify the webhook address of Slack from secret, the key of the secret|
|slack.message||Object||Required, the Slack messages you want to send, please follow Slack messaging|
|dingding||Object||Optional, please fulfill its url and message if you want to send DingTalk messages|
|dingding.url||Object||Required, the webhook address of DingTalk, you can choose to fill it in directly or specify it in secret|
|dingding.url.address||String||Optional, directly specify the webhook address of DingTalk|
|dingding.url.fromSecret.name||String||Optional, specify the webhook address of DingTalk from secret|
|dingding.url.fromSecret.key||String||Optional, specify the webhook address of DingTalk from secret, the key of the secret|
|dingding.message||Object||Required, the DingTalk messages you want to send, please follow DingTalk messaging|
Apply the following
Application with workflow step type of
we can see that before and after the deployment of the application, the messages can be seen in the corresponding group chat.
webhook-notification, we can integrate with webhook notifier easily.