groundcover-com / murre

Murre is an on-demand, scaleable source of container resource metrics for K8s.
https://www.groundcover.com/blog/murre
Apache License 2.0
310 stars 18 forks source link

Error when auth-provider is oidc #11

Closed ulrichSchreiner closed 1 year ago

ulrichSchreiner commented 1 year ago

hi,

when trying to use murre with a KUBECONFIG where the user has an auth-provider with name oidc i get

❯ murre --kubeconfig $KUBECONFIG
panic: no Auth Provider found for name "oidc"

goroutine 1 [running]:
main.main()
        /home/usc/go/pkg/mod/github.com/groundcover-com/murre@v0.0.2/main.go:32 +0x112

my KUBECONFIG looks like this:

users:
  - name: userid
    user:
      auth-provider:
        config:
          client-id: XXXX
          client-secret: XXXX
          id-token: XXXX
          idp-certificate-authority: XXXX
          idp-issuer-url: XXXX
          refresh-token: XXXX
        name: oidc
maxlevinps commented 1 year ago

@ulrichSchreiner - We've released v0.0.3 which should resolve the missing oidc provider. It will be great if you'll be able to test it and report wether the fix resolves your issue.

ulrichSchreiner commented 1 year ago

yes it works, thanks