This chat bot allows you to interact with existing OpenShift cluster though Slack.
Currently openshift-slack-bot allows you to get details of openshift cluster through chats in Slack. These chats can come from you and your teammates, or from any other app that you have integrated with Slack
Note, this script utilizes the oc cli client, a wrapper for the oc
command.
!oc help - will reveal all the commands
-
In hubot project repo, run:
npm install hubot-openshift-slack-bot --save
-
Install and copy oc cli into
/usr/bin
-
Then add hubot-openshift-slack-bot to your
external-scripts.json
:[ "hubot-openshift-slack-bot" ]
-
Start hubot and export
KUBECONFIG
variable pointing to youradmin.kubeconfig
file. -
Type
!oc help
to get all the available commands
https://www.npmjs.com/package/hubot-openshift-slack-bot
If you like any of these ideas and want to see them, or if you have any cool ideas of your own, let me know at rohitrsh@gmail.com - thanks!
Add more commands, it would be very cool to have a that mimic the behavior of the oc command