Slack Interactive Notification
Last updated
Last updated
Follow the instructions below to create a Slack App From Scratch.
Create a slack channel either public or private. Ignore this, if you already have a workspace and channel.
Click the below URL and sign in to your Slack account to create an application. https://api.slack.com/apps?new_app=
Click “Create an App”
Click on “From scratch” in the popup window as shown below:
Type your “App Name” and “Pick a workspace to develop your app in” from the dropdown and then click “Create App”.
Once the application is created, navigate to “OAuth & Permissions" under “Features” as the app requires permission to send notifications. Click “OAuth & Permissions” from the navigation menu and scroll down to find the "Scopes" and then click “Add an OAuth Scope”. Refer to the image below.
The scopes govern a Slack app's capabilities and permissions. Provide the permissions chat:write and chat:write.customize. Refer to the image below.
Once the scope is created, Scroll back to the top and click the “Install to Workspace” button.
Click “Allow” button to allow your workspace for notifications.
Now users can see the “Bot User OAuth Token”. Copy it to local.
Convert your token to base64 encoded.
Edit the secret called “argocd-notifications-controller-secret”.
Configure the Slack integration token in configmap called “argocd-notifications-controller-cm”.
Make sure you have the slack template in the same configmap. For more information on templates, click here.
Your application is installed now in the workspace and you need to integrate your application into Slack channels by following the below steps.
Go to your Slack application and click on your “Channel Name”(for example “maheshapp-argo-pub”) from the channel list and again click on the “Channel name” that appears right side to view channel details. Refer to the image below.
Now click on the “Integrations” tab and then click on “Add an App”. Refer to the image below.
Search with your app name and Click “Add”.
Now configure notification in the argo application.
Edit the application and add annotations to it as shown below.
Now Sync your application. Based on your app status, notifications will be triggered. Refer to the image below.
Once the app is added, it notifies in the channel. Refer to the image below.