Commit Graph

12 Commits

Author SHA1 Message Date
Rahul M Chheda
c326015ec0
(feat.) creation of SharedInformer from Dynamic ClientSet (#253)
##### ISSUE TYPE
<!--- Pick one below and delete the rest: -->
 - Feature Pull Request
 - Bug fix Pull Request
 - Docs Pull Request

Feature Pull Request

##### SUMMARY
<!--- Describe the change, including rationale and design decisions -->
    - Added creation of Dynamic ClientSet
    - Replaced the current k8s resources to DynamicInformer
    - Added logic to create metav1.ObjectMeta/ metav1.TypeMeta from obj interface{}
    - Added GKE auth pkg
    - Modified fns to get ObjectMeta, and ObjectTypeMeta
    - Added function to create *coreV1.Event from the obj interface{}
    - Improved switch case for event.New()
    - Added for loop to create informer
    - Changed Name for fn GetAnnotaion to GetAnnotationFromEvent
    - Changed Parsing Logic for GCR (using '/')
    - Added logic in FilterEngine, to get the appropriate data
    - Full deprecate kubeClient init
    - Added logic to fetch resources from DynamicKubeClient
    - Added a fn to transform a object form ibj interface{}
    - Added REST Mapper to map all resources present on the cluster
    - Declared this REST Mapper as global for further use
    - Removed logic to filter out the Kubernetes resources according to Involved Object kind
    - Removed constants from utils.go

In the latest commit:
    - To pass the e2e tests, just replaced all kubernetes resources informer, with dynamic informer.
    - Unable to pass the e2e test suite (will paste the error in the comments.)
<!---
If you are fixing an existing issue, please include "Fixes #nnn" in your
PR comment; and describe briefly what the change does.
-->

<!--- Please list dependencies added with your change also -->

Fixes https://github.com/infracloudio/botkube/issues/200
2020-09-07 03:42:32 +00:00
Prasad Ghangal
c6db9526a3
Add MS Teams support (#242)
##### ISSUE TYPE
<!--- Pick one below and delete the rest: -->
 - Feature Pull Request


##### SUMMARY

- Add support for Microsoft Teams
- Multicluster support not available yet for Teams

Integration tests will be addressed with a separate issue. Blocked by https://github.com/infracloudio/msbotbuilder-go/issues/46

Fixes #60
2020-08-11 06:12:09 +00:00
Prasad Ghangal
b887214b6c
Refactor notifier to use Bot interface to send notifications (#309)
##### ISSUE TYPE

 - Feature Pull Request

##### SUMMARY

In the notifier, we send events by creating a new connection to the communication medium on every new event. We can reduce the number of connections by sending messages via the Bot interface.

Fixes #270
2020-07-13 12:06:27 +00:00
kartik-moolya
57491857fc
adding feature to support AWS Signing and creating new index per day (#302)
##### ISSUE TYPE
<!--- Pick one below and delete the rest: -->
 - Feature Pull Request

##### SUMMARY
<!--- Describe the change, including rationale and design decisions -->

Allows user to specify if Elasticsearch is hosted on AWS
- configuration fields have been added to specify if Elasticsearch is hosted on AWS

<!---
If you are fixing an existing issue, please include "Fixes #nnn" in your
PR comment; and describe briefly what the change does.
-->
Includes feature which would allow botkube to send Kubernetes events to Elasticsearch hosted on AWS
* Uses AWS V4 signature to sign the http request
* Uses environment variables to pick AWS configurations

Secondly creates new index per day with index name suffixed as -DD-MM-YYYY
<!--- Please list dependencies added with your change also -->

Fixes #299 
Fixes #283
2020-07-01 12:27:38 +00:00
Prasad Ghangal
fe163c2223 Add support for jsonpath in updateSetting
Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>
2020-01-09 19:15:43 +05:30
Surbhidongaonkar
d8f10a62df Expose prometheus metrics for BotKube (#219) 2019-11-30 20:39:44 +05:30
Prasad Ghangal
1105ce3c20
Update nlopes/slack dep to work with latest Slack api changes (#217)
Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>
2019-11-19 18:01:09 +05:30
Prasad Ghangal
05691f61b8
Update K8s package deps to 1.16 (#193)
Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>
2019-10-11 15:53:02 +05:30
Prasad Ghangal
c4b6913e12
Remove vendoring since we have switched to go modules (#166)
Update Dockerfile to use go mod
Add .gitignore

Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>
2019-08-26 21:58:41 +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
ec65f308d1 Vendoring: Update nlopes/slack dep to master
Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>
2019-08-26 17:35:47 +05:30
coder
5013c3b736 Add Support Go Modules, Remove dep dependencies (#141)
- migrates the dependencies management from deb to go modules.
- `Gopkg.lock` and `Gopkg.toml` of dep removed and  `go.mod` and `go.sum` of modules added 
- replaces `dep endure` with `go mod verify` .travis.yaml
- updates vendor dependencies using `go mod tidy`,`go mod verify` and `go mod vendor` commands
- replaces `github.com/google/go-github/github` with `github.com/google/go-github/v27/github` for go module support in `pkg/controller/upgrade.go`
2019-08-05 14:55:46 +05:30