Commit Graph

19 Commits

Author SHA1 Message Date
Prasad Ghangal
ecde3184e3
Add license headers to source files (#266)
Update copyright years t0 2019-2020 in license

Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>
2020-04-27 09:20:16 +05:30
Aananth K
b016f060a1
Fix Node getting ready is reported as an error (#261)
This Commit,
- changes the event type created during NodeReady as InfoEvent.
- adds corresponding InfoEvent case in the notify package.
2020-04-22 16:22:43 +05:30
Prasad Ghangal
46b12e484c Move message formatting function to notif package
Fix previews in Slack & Mattermost notifications

Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>
2019-11-23 17:33:35 +05:30
Prasad Ghangal
4872cfaeb1
Make notification messages more readable (#175)
Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>
2019-09-09 12:31:50 +05:30
Prasad Ghangal
7cc76cfbf2 Refactor Bot implementations to work with mocked Slack
Add CommandRunner interface and fake_executor to mock kubectl command execution
Add warnings field to the Event struct
Update filter recommendation message format

Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>
2019-08-26 17:35:47 +05:30
Prasad Ghangal
ab813afe59 Refactor Slack notifier to use latest nlopes/slack
Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>
2019-08-26 17:35:47 +05:30
coder
72f2f19842 [feature] Add Object Annotation filter, Fixes #132, #133 (#138)
* Add Object Annotation filter

This commit, 
- enables filtering of events based on annotations present in objects at run time.
- annotation `botkube.io/disable: true` disables event notifications for the annotated object
- annotation `botkube.io/channel: <channel_name>` sends events notifications of the annotated object to the mentioned channel.
- adds func `ExtractAnnotations()`. It extract annotations from Event.InvolvedObject and adds them to event.Metadata.Annotations
- implements individual actions using internal functions.
- adds unit tests for internal functions.
- replaces Init() with InitialiseKubeClient() to decouple config.yaml and KubeClinet dependencies from unit testing

* Add build completion message
2019-08-12 22:38:50 +05:30
coder
be5fade9a1 Enhance Notification : short/long notification type (#127)
This commit,
- enables sending short/long event notifications to channels
- adds a optional filed "notiftype" under channel config to change between short (default) and long notif types
- adds Message() method to event object for creating brief messages (to use across handlers)
- BugFix: enable/disable recommendations through config file
2019-07-26 11:59:15 +05:30
Prasad Ghangal
083fd3c5cf Add support for elasticsearch interface 2019-04-04 16:31:53 +05:30
Prasad Ghangal
46d6f9b825 Add support for multiple clusters 2019-01-15 14:14:16 +05:30
Prasad Ghangal
f6a389ab64 Rename kubeops to botkube 2019-01-03 17:37:20 +05:30
Prasad Ghangal
5a4430ee79 Fixes #2: Send bot start/stop messages to slack channel
- Fix timestamps in delete notifications
2019-01-02 14:12:57 +05:30
Prasad Ghangal
9126c83431 Add timestamp to slack notifications 2018-12-31 16:22:27 +05:30
Prasad Ghangal
c3bfc46dde Run golint on source code 2018-12-31 11:11:48 +05:30
Prasad Ghangal
62e05383b4 Add ping command, support for nodes, pvcs resources 2018-12-28 15:11:24 +05:30
Prasad Ghangal
51a2ead830 Support 2-way communication with slack bot to exec kubectl commands 2018-12-27 14:12:52 +05:30
Prasad Ghangal
ec1c5f76d9 Fix event maps and build script 2018-12-26 16:18:55 +05:30
Prasad Ghangal
7b930f46ed Send slack notification for event 2018-12-26 13:11:28 +05:30
Prasad Ghangal
5f61821baa Add controller, filterengine and notifier for kubeops 2018-12-24 15:06:31 +05:30