botkube icon indicating copy to clipboard operation
botkube copied to clipboard

Feedback instead of No Response while executing commands

Open codenio opened this issue 5 years ago • 3 comments

Is your feature request related to a problem? Please describe. botkube does not provide a response when

  • certain botkube commands are executed from non configured cluster,
  • when a user tries kubectl commands but it is not enabled in are not enabled in the config

and some similar situations

Describe the solution you'd like it should provide suitable feedback to the user

would like to work on the same.

codenio avatar Oct 05 '20 18:10 codenio

again this response would be getting repeated in a multi cluster env. need to find a way to over come such issues with multi cluster env

codenio avatar Oct 05 '20 19:10 codenio

In multi-cluster env, the user could promote a particular k8s cluster name as a leader at any time. which is recorded by all the instances of botkube present at the time. only the leader responds to common commands like help or provides feedback in any non configured channel by default.

when a new instance of botkube comes up or when the leader goes out, the user needs to promote one of the existing instances again.

later this could be automated based on entry and exit messages from instances.

codenio avatar Oct 05 '20 19:10 codenio

or to avoid manual promotions,

in a configured channel - only the particular instance will respond to generic command and provide feedback

in a non configured channel - the first one responds ping can be chosen as leader until the next ping command. and the leader responds to generic commands and provide feedback

codenio avatar Oct 05 '20 20:10 codenio