Skip to main content

Slack

Example Slack Connection
apiVersion: mission-control.flanksource.com/v1
kind: Connection
metadata:
name: slack-connection
namespace: default
spec:
slack:
token:
value: your-slack-token
channel: Cxxxxxxxxxx
botName: your-bot-name
color: "#36a64f"
icon: ":robot_face:"
title: "Notification Title"

This example:

  1. Uses token to authenticate the Slack bot.
  2. Sends messages to the specified channel.
  3. Sets the botName to identify the bot.
  4. Optionally sets the color of the message border.
  5. Optionally sets the icon for the bot.
  6. Optionally sends the message as a reply in a thread using threadTS.
  7. Optionally prepends a title above the message.
FieldDescriptionScheme
channel*

The channel to send messages to, in Cxxxxxxxxxx format

string

token*

Slack app's API bot token.

EnvVar

botName

Bot name

color

Message left-hand border color

good | warning | danger | URL encoded hex color code
icon

emoji or URL

threadTS

ts value of the parent message (to send message as reply in thread)

title

Prepended text above the message