AliyunContainerService / gpushare-device-plugin

GPU Sharing Device Plugin for Kubernetes Cluster
Apache License 2.0
468 stars 144 forks source link

kubectl-inspect-gpushare: fatal with OpenID as auth-provider #27

Open k0nstantinv opened 4 years ago

k0nstantinv commented 4 years ago

First of all thanks for your work!

kubectl-inspect-gpushare plguin falls with FATAL when kubectl configured with OpenID as auth-provider

$ kubectl inspect gpushare
ERROR: logging before flag.Parse: F0804 17:04:14.378041   17870 podinfo.go:44] Failed due to No Auth Provider found for name "oidc"
goroutine 1 [running, locked to thread]:
github.com/AliyunContainerService/gpushare-device-plugin/vendor/github.com/golang/glog.stacks(0xc0000d6000, 0xc0003ee000, 0x62, 0xb4)
    /Users/vkd/go/src/github.com/AliyunContainerService/gpushare-device-plugin/vendor/github.com/golang/glog/glog.go:769 +0xb1
github.com/AliyunContainerService/gpushare-device-plugin/vendor/github.com/golang/glog.(*loggingT).output(0x2886b20, 0xc000000003, 0xc0003c7260, 0x2811fbb, 0xa, 0x2c, 0x0)
    /Users/vkd/go/src/github.com/AliyunContainerService/gpushare-device-plugin/vendor/github.com/golang/glog/glog.go:720 +0x2f6
github.com/AliyunContainerService/gpushare-device-plugin/vendor/github.com/golang/glog.(*loggingT).printf(0x2886b20, 0x3, 0x1ced327, 0x10, 0xc00010df08, 0x1, 0x1)
    /Users/vkd/go/src/github.com/AliyunContainerService/gpushare-device-plugin/vendor/github.com/golang/glog/glog.go:655 +0x14e
github.com/AliyunContainerService/gpushare-device-plugin/vendor/github.com/golang/glog.Fatalf(...)
    /Users/vkd/go/src/github.com/AliyunContainerService/gpushare-device-plugin/vendor/github.com/golang/glog/glog.go:1148
main.kubeInit()
    /Users/vkd/go/src/github.com/AliyunContainerService/gpushare-device-plugin/cmd/inspect/podinfo.go:44 +0x1ca
main.init.0()
    /Users/vkd/go/src/github.com/AliyunContainerService/gpushare-device-plugin/cmd/inspect/main.go:26 +0x20