-
-
Notifications
You must be signed in to change notification settings - Fork 331
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
Error loading kube config: Missing GOOGLE_APPLICATION_CREDENTIALS #84
Comments
Presumably it should shell out to It might help to clarify what the success conditions are (e.g. what a working config looks like that kubectl can work with), and how it fails with |
Maybe a generic hack (until there is a full implementation able to update kubeconfig) could be to run a command like |
What you're looking for is codified at /~https://github.com/kubernetes/client-go/blob/master/plugin/pkg/client/auth/gcp/gcp.go Basically, the command to execute to get creds is
This object tells you:
Then you cache this value by updating kubeconfig file entry's Based on expiration date in kubeconfig file, you either use the existing token cached in this file, or get a new one (and cache it). Alternatively, you can shell out to |
A mechanism to shell out to the There might be some more stuff missing for this issue, as I've not been able to cross reference with a live GCP cluster yet, so please re-open if anyone spots something! |
Hi,
I submitted a kubectl plugin,based on kube-rs, to krew-index. One of the reviewer got error when trying to use it with gcp.
kubernetes-sigs/krew-index#294 (comment)
Can you help or provide me some guidance for a PR ?
The text was updated successfully, but these errors were encountered: