Feedback instead of No Response while executing commands
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.
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
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.
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