k8sgpt
k8sgpt copied to clipboard
[Bug]: Duplicate Integration Activation Allowed
Checklist
- [X] I've searched for similar issues and couldn't find anything matching
- [X] I've included steps to reproduce the behavior
Affected Components
- [X] K8sGPT (CLI)
- [ ] K8sGPT Operator
K8sGPT Version
v0.3.26
Kubernetes Version
v1.29.1
Host OS and its Version
Linux 22.04.3 LTS
Steps to reproduce
- Run k8sgpt integration list to view active and unused integrations.
- Activate an unused integration using k8sgpt integration activate
. - Repeat step 2 with the same integration.
- Notice that the system allows the same integration to be activated multiple times without any warning or error message.
Expected behaviour
When attempting to activate an already active integration, the system should provide a warning or error message indicating that the integration is already active.
Actual behaviour
The current system allows the same integration provider to be activated multiple times. When attempting to activate an already active integration, the system should provide a warning or error message indicating that the integration is already active.
Additional Information
In the auth backend provider, we receive a warning like Provider with the same name already exists
. The same should be true for this issue. If this issue is valid, I would like to fix it.