int128 / kubelogin

kubectl plugin for Kubernetes OpenID Connect authentication (kubectl oidc-login)
Apache License 2.0
1.67k stars 191 forks source link

kubectl krew install oidc-login or kubectl krew index list fails #817

Open jyothiradityak opened 1 year ago

jyothiradityak commented 1 year ago

Hi,

While running commands kubectl krew install oidc-login kubectl krew index list, it fails with this error

failed to retrieve plugin indexes: failed to list the remote URL for index default: command execution failure, output="": exit status 1
Error: exit status 1

Can you please how to resolve this issue.

Your environment

sfxworks commented 1 year ago

This is still occuring

mcollins-ttd commented 1 year ago

Try telling Git that Krew's default index is a safe directory:

git config --global --add safe.directory C:/Users/foo/.krew/index/default

See also https://github.com/kubernetes-sigs/krew/issues/814