k8sgpt icon indicating copy to clipboard operation
k8sgpt copied to clipboard

[Bug]: Fail Fast when add auth

Open gyliu513 opened this issue 7 months ago • 2 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.37

Kubernetes Version

v1.21

Host OS and its Version

No response

Steps to reproduce

  1. add openai auth with an invalid api key
  2. run k8sgpt with --explain to trigger AI backend
  3. got error due to openai api key is not right

Expected behaviour

Can k8sgpt report errors when adding an invalid auth?

Actual behaviour

No error with invalid auth, and customer will got errors when running k8sgpt explain.

Additional Information

No response

gyliu513 avatar Jun 26 '24 19:06 gyliu513