Slack bot¶
The Slack bot leverages slash commands. The bot allows slack users to view existing channel subscriptions and subscribe or unsubscribe channels.
- Make sure bot component is installed.
- Configure slack integration.
- In the slack application settings page navigate to the 'Slash Commands' section and click 'Create New Command' button.
- Fill in new slack command details
- In the slack application settings page navigate to the 'Basic Information' section and copy 'Signing Secret' from the 'App Credentials' section.
- Add
signingSecret
to the slack configuration.
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-notifications-cm
data:
service.slack:
token: $slack-token
signingSecret: $slack-signing-secret
Commands¶
The bot supports following commands:
list-subscriptions
- list channel subscriptionssubscribe <my-app> <optional-trigger>
- subscribes channel to the app notificationssubscribe proj:<my-app> <optional-trigger>
- subscribes channel to the app project notificationsunsubscribe <my-app> <optional-trigger>
- unsubscribes channel from the app notificationsunsubscribe proj:<my-app> <optional-trigger>
- unsubscribes channel from the app project notifications