k8sgpt
k8sgpt copied to clipboard
[Bug]: Fail Fast when add auth
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
- add openai auth with an invalid api key
- run k8sgpt with
--explain
to trigger AI backend - 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