nuvo / cain

Backup and restore tool for Cassandra on Kubernetes
Apache License 2.0
32 stars 21 forks source link

No Auth Provider found for name "oidc" #22

Open ahmedjami opened 4 years ago

ahmedjami commented 4 years ago

Hi, I got the following error when trying to run a cain command:

cain schema -n cassjcarlo -k demodb -l app=cassandracluster 2020/02/10 15:47:40 No Auth Provider found for name "oidc"

I see that cain use the current context from .kube/config file with an out-of-cluster client configuration wich it's my case.

So I decided to try with client-go out-of-cluster-client-configuration example and I Got the same error! So, I modified the main.go of out-of-cluster-client-configuration and uncomment _ "k8s.io/client-go/plugin/pkg/client/auth/oidc" line. so I could run the example.

Now that I know where the error comes from, I want to know how authentication is implemented and where I can find the list of plugin used for auth in cain ? thanks

ahmedjami commented 4 years ago

I found this https://github.com/nuvo/skbn/blob/master/pkg/skbn/kube.go The configuration of client to authenticate to K8S is done here ? thanks