robinovitch61 / kl

An interactive Kubernetes log viewer for your terminal.
MIT License
83 stars 0 forks source link

no Auth Provider found for name "oidc" #1

Open zeddius1983 opened 4 days ago

zeddius1983 commented 4 days ago

When simply running 'kl' I'm getting this:

Error - if this seems wrong, consider opening an issue                                       
https://github.com/robino61/kl/issues/new                                                    

ctrl+c to quit                                                                               

failed to create clientset for cluster ***: no Auth Provider found for name "oidc"

I'm running this on mac os x, installed with a homebrew.

robinovitch61 commented 4 days ago

Hey @zeddius1983 ,

Do you see output by running kubectl get pods and kubectl logs <one-of-your-pods>?

zeddius1983 commented 3 days ago

Hi, yes of course.

I use tkgi get-kubeconfig to authenticate and fetch configuration if it matters.

OpenLens, ks9 works fine after this.

robinovitch61 commented 2 days ago

I don't use "Tanzu Kubernetes Grid Integrated" so I can't repro locally.

Run with KL_DEBUG=1 set. Look at the kl.log file generated in the same directory where you run kl. You should see lines like:

2024/09/27 17:34:30.911368 "kubeconfig paths: [/Users/leo/.kube/config]"
2024/09/27 17:34:30.911714 "using contexts [k3d-test]"
2024/09/27 17:34:30.911731 "using cluster 'k3d-test' namespace 'default'"
2024/09/27 17:34:30.912070 "using context k3d-test for cluster k3d-test"

Hopefully that helps you debug. If you figure out what your issue is, let me know the details - I can hopefully add logic to fix your edge case.

PRs also welcome if you figure out how to fix it yourself