botkube icon indicating copy to clipboard operation
botkube copied to clipboard

Interactive Message Response Size Handling

Open huseyinbabal opened this issue 1 year ago • 2 comments

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. pod_size_big

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.

huseyinbabal avatar May 05 '23 11:05 huseyinbabal

I can help with this issue @huseyinbabal

sadath-12 avatar Sep 11 '23 13:09 sadath-12

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.

huseyinbabal avatar Sep 15 '23 14:09 huseyinbabal