nuvo / skbn

Copy files and directories between Kubernetes and cloud storage
Apache License 2.0
72 stars 75 forks source link

Facing issue " No Auth Provider found for name "azure" #17

Open gopalkalabe opened 4 years ago

gopalkalabe commented 4 years ago

Trying to copy file from kubernetes pod to azure storage. But facing the above issue.

ahmedjami commented 4 years ago

Hi, You have to add the import of azure plugin on kube.go, like my case where I have to connect with oidc Auth Provider. Please check here : https://github.com/ahmedjami/skbn/blob/master/pkg/skbn/kube.go#L16 You have to replace _ "k8s.io/client-go/plugin/pkg/client/auth/oidc" With _ "k8s.io/client-go/plugin/pkg/client/auth/azure" And build your project Hope this help!

ahmedjami commented 4 years ago

I'll will commit the new kube.go with all plugin to allow users to activate the needed plugin