Slack bot (v0.5)¶
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 in thenotifiers.yaml
field of theargocd-notification-secret
:
apiVersion: v1
kind: Secret
metadata:
name: argocd-notifications-secret
stringData:
notifiers.yaml: |
slack:
token: <my-token>
signingSecret: <my-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