Client-go: panic: No Auth Provider found for name "oidc"

Created on 16 Dec 2017  路  2Comments  路  Source: kubernetes/client-go

The out of cluster config example no longer works for me. I believe it was recently so I'm not sure what changed. I get this error:

panic: No Auth Provider found for name "oidc"

goroutine 1 [running]:
main.main()
        /Users/raphael.deem/Documents/code/go/src/list-proms/main.go:53 +0x60d

I am able to list the nodes:

$ kubectl get nodes | wc -l
      10

I tried doing https://github.com/coreos/tectonic-forum/issues/99#issuecomment-295458740

But then I just get this, as expected:

$ go build                                                                                       
# _/Users/raphael.deem/Documents/code/list-proms                                                                      
./main.go:14:2: imported and not used: "k8s.io/client-go/plugin/pkg/client/auth/oidc"   

Most helpful comment

The format is

import (
     _ "k8s.io/client-go/plugin/pkg/client/auth/oidc"
)

All 2 comments

The format is

import (
     _ "k8s.io/client-go/plugin/pkg/client/auth/oidc"
)

whoops, thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jharshman picture jharshman  路  4Comments

prestonvanloon picture prestonvanloon  路  6Comments

tamalsaha picture tamalsaha  路  3Comments

peterwillcn picture peterwillcn  路  5Comments

jgrobbel picture jgrobbel  路  3Comments