AmadeusITGroup / Redis-Operator

Redis Operator creates/configures/manages Redis clusters atop Kubernetes
MIT License
168 stars 62 forks source link

Kubctl plugin redisoperator didn't work on GKE cluster #14

Closed clamoriniere1A closed 6 years ago

clamoriniere1A commented 6 years ago

During a test on GKE cluster, I discovered that kubectl rediscluster plugin didn't works properly with the GKE kubeconfig auth_provider config.

plugin version: git commit_id 695c49903eceee361c910c007ca9bc63ca99fbd0

> plugin rediscluster
F0703 18:00:47.723112   20285 main.go:60] Unable to init redis.clientset from kubeconfig:No Auth Provider found for name "gcp"
goroutine 1 [running]:
github.com/amadeusitgroup/redis-operator/vendor/github.com/golang/glog.stacks(0xc42033cc00, 0xc4201481c0, 0x7f, 0xd4)
    /Users/clamoriniere/dev/projects/redis-operator-oss/src/github.com/amadeusitgroup/redis-operator/vendor/github.com/golang/glog/glog.go:766 +0xcf
github.com/amadeusitgroup/redis-operator/vendor/github.com/golang/glog.(*loggingT).output(0x228ede0, 0xc400000003, 0xc42021a2c0, 0x21feb1c, 0x7, 0x3c, 0x0)
    /Users/clamoriniere/dev/projects/redis-operator-oss/src/github.com/amadeusitgroup/redis-operator/vendor/github.com/golang/glog/glog.go:717 +0x30f
github.com/amadeusitgroup/redis-operator/vendor/github.com/golang/glog.(*loggingT).printf(0x228ede0, 0x3, 0x1b8590e, 0x31, 0xc420419890, 0x1, 0x1)
    /Users/clamoriniere/dev/projects/redis-operator-oss/src/github.com/amadeusitgroup/redis-operator/vendor/github.com/golang/glog/glog.go:655 +0x14b
github.com/amadeusitgroup/redis-operator/vendor/github.com/golang/glog.Fatalf(0x1b8590e, 0x31, 0xc420419890, 0x1, 0x1)
    /Users/clamoriniere/dev/projects/redis-operator-oss/src/github.com/amadeusitgroup/redis-operator/vendor/github.com/golang/glog/glog.go:1145 +0x67
main.main()
    /Users/clamoriniere/dev/projects/redis-operator-oss/src/github.com/amadeusitgroup/redis-operator/cmd/kubectl-plugin/main.go:60 +0x427
error: exit status 255

it seams related to: https://github.com/kubernetes/client-go/issues/242