k8sgpt icon indicating copy to clipboard operation
k8sgpt copied to clipboard

[Bug]: Duplicate Integration Activation Allowed

Open amitamrutiya opened this issue 1 year ago • 0 comments

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

  1. Run k8sgpt integration list to view active and unused integrations.
  2. Activate an unused integration using k8sgpt integration activate .
  3. Repeat step 2 with the same integration.
  4. 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.

amitamrutiya avatar Feb 03 '24 04:02 amitamrutiya