botkube
botkube copied to clipboard
Interactive Message Response Size Handling
Overview
You can see the original context here
Botkube has interactive message system where you can select resource interactively and take actions e.g. select one of the pods and see logs
. If the response size of pod list is too big, we return it as Slack attachment (which is expected, since Slack has plain text size limit).
You can see an example below.
Acceptance Criteria
- Provide configuration for reducing the size of resource list to work with interactive messages.
- (Maybe) If resource list size is more then 4K, trim first 4K and show only that part with a message visible to end user.
Reason
For big k8s clusters, there might be lots of resources and we will see attachments while working with interactive messages.
I can help with this issue @huseyinbabal
As we discussed 1-to-1, we can limit resources limit by line as 100, and it can be configurable via kubectl config section.
Pagination is out of context now.