kubeshop / botkube

An app that helps you monitor your Kubernetes cluster, debug critical deployments & gives recommendations for standard practices
https://botkube.io
MIT License
2.15k stars 290 forks source link

Extract Kubernetes source feature as a plugin #840

Closed huseyinbabal closed 1 year ago

huseyinbabal commented 2 years ago

Importan Update

Kubernetes plugin is successfully extracted as a plugin, and it works now as expected, but since entire Botkube system depends on Kubernetes event, we needed to touch all kind of component including filters, recommendations, reporting, etc... We introduced follow-up items as follows;

Out of scope:

Overview

Botkube supports Kubernetes events. It is a typical example of a Source plugin. We need to extract it as a standalone plugin.

Acceptance Criteria

Additional scope / notes

mszostok commented 1 year ago

NOTE: as a part of this task we should also move the filter logic into Source Dispatcher service: https://github.com/kubeshop/botkube/blob/main/internal/source/dispatcher.go#L33

mszostok commented 1 year ago

After sync with @huseyinbabal and @pkosiec we decided to remove support for the Botkube related annotations as described in https://github.com/kubeshop/botkube/issues/690

Instead, users will be able to define annotation constrains directly in k8s source configuration and bind it per channel.

AC