int128/kubelogin

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

jyothiradityak opened this issue · 2 comments

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

  • OS: Win 10 Build 19044 (x64)
  • krew version: 0.4.3
  • kubectl version: 1.24.1
  • OpenID Connect provider: e.g. Google

This is still occuring

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 kubernetes-sigs/krew#814