gini / dexter

dexter is a Kubernetes OIDC helper with as much automation as possible
https://blog.gini.net/frictionless-kubernetes-openid-connect-integration-f1c356140937
MIT License
166 stars 29 forks source link

Wrong kube config path. #25

Closed andrewsav-bt closed 4 years ago

andrewsav-bt commented 5 years ago

This is how kubectl get's the home folder to build config path: https://github.com/kubernetes/client-go/blob/master/util/homedir/homedir.go

This is how you do it: https://github.com/gini/dexter/blob/4a3534fd62620625b6d00ef34546f7631800f4b1/cmd/auth.go#L70

In most cases result will be the same, but we hit an issue here when the result was different and the setup failed.

It would be nice if this could be fixed.