generated from cybozu-go/neco-template
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kubectl-moco cannot authenticate to a GKE cluster #320
Labels
bug
Something isn't working
Comments
Thank you for the report. I'll take a look. |
We need |
Sure. Those lines are included in the scaffold generated by kubebuilder. import (
// Import all Kubernetes client auth plugins (e.g. Azure, GCP, OIDC, etc.)
// to ensure that exec-entrypoint and run can make use of them.
_ "k8s.io/client-go/plugin/pkg/client/auth" |
Merged
@pbuszka |
@masa213f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
A clear and concise description of what the bug is.
When trying to access moco mysql cluster deployed ona GKE kubectl moco fails with
Environments
kubectl-moco version 0.10.6
kubectl version
Client Version: version.Info{Major:"1", Minor:"20+", GitVersion:"v1.20.8-dispatcher", GitCommit:"283881f025da4f5b3cefb6cd4c35f2ee4c2a79b8", GitTreeState:"clean", BuildDate:"2021-09-14T05:12:27Z", GoVersion:"go1.15.13", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"20+", GitVersion:"v1.20.10-gke.301", GitCommit:"17ad7bd6afa01033d7bd3f02ce5de56f940a915d", GitTreeState:"clean", BuildDate:"2021-08-24T05:18:54Z", GoVersion:"go1.15.15b5", Compiler:"gc", Platform:"linux/amd64"}
To Reproduce
Steps to reproduce the behavior:
kubectl moco -n foo mysql -it test
Expected behavior
Ability to use kubectl-moco with a GKE cluster
Additional context
The issue probably comes down to the problem mentioned in this issue
kubernetes/client-go#839
and proposed solution to inlude appropriate auth libs
https://github.com/kubernetes/client-go/blob/master/examples/out-of-cluster-client-configuration/main.go#L33-L40
Unfortunatly, I don't know go good enough to propose a meaningful PR
The text was updated successfully, but these errors were encountered: