|
4 | 4 | 
|
5 | 5 | 1. Once application is created navigate to `Enter OAuth & Permissions`
|
6 | 6 | 
|
7 |
| -1. Click `Permissions` under `Add features and functionality` section and add `chat:write:bot` scope. To use the optional username and icon overrides in the Slack notification service also add the `chat:write.customize` scope. |
| 7 | +1. Click `Permissions` under `Add features and functionality` section and add `chat:write` scope. To use the optional username and icon overrides in the Slack notification service also add the `chat:write.customize` scope. |
8 | 8 | 
|
9 | 9 | 1. Scroll back to the top, click 'Install App to Workspace' button and confirm the installation.
|
10 | 10 | 
|
11 | 11 | 1. Once installation is completed copy the OAuth token.
|
12 | 12 | 
|
13 | 13 |
|
14 | 14 | 1. Create a public or private channel, for this example `my_channel`
|
15 |
| -1. Add your bot to this channel **otherwise it won't work** |
16 |
| -9. Store token in argocd_notifications-secret Secret |
| 15 | +1. Invite your slack bot to this channel **otherwise slack bot won't be able to deliver notifications to this channel** |
| 16 | +8. Store Oauth access token in `argocd-notifications-secret` secret |
17 | 17 |
|
18 | 18 | ```yaml
|
19 | 19 | apiVersion: v1
|
20 | 20 | kind: Secret
|
21 | 21 | metadata:
|
22 | 22 | name: <secret-name>
|
23 | 23 | stringData:
|
24 |
| - slack-token: <auth-token> |
| 24 | + slack-token: <Oauth-access-token> |
25 | 25 | ```
|
26 | 26 |
|
27 |
| -10. Finally use the OAuth token to configure the Slack integration in the `argocd-notifications-secret` secret: |
28 |
| - |
| 27 | +9. Define service type slack in data section of `argocd-notifications-cm` configmap: |
| 28 | +service |
29 | 29 | ```yaml
|
30 | 30 | apiVersion: v1
|
31 | 31 | kind: ConfigMap
|
|
39 | 39 | icon: <override-icon> # optional icon for the message (supports both emoij and url notation)
|
40 | 40 | ```
|
41 | 41 |
|
42 |
| -1. Create a subscription for your Slack integration: |
| 42 | +10. Add annotation in application yaml file to enable notifications for specific argocd app |
43 | 43 |
|
44 | 44 | ```yaml
|
45 | 45 | apiVersion: argoproj.io/v1alpha1
|
|
0 commit comments