-
-
Notifications
You must be signed in to change notification settings - Fork 97
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: no Auth Provider found for name "gcp" #17
Comments
Did this error occur in older versions? |
for your kubeconfig, your context named |
Hi @sunny0826, There's no much more to say about it, really. The configuration I reproduce here is a sanitized version of that config file, where I only removed the tokens and trimmed the tail of I realize tho that I haven't provided the command I issued when I got the error nor the full error output, so here it goes: ~ ✖1 ❯ k get ns
NAME STATUS AGE
default Active 295d
gitlab-managed-apps Active 233d
kube-node-lease Active 295d
kube-public Active 295d
kube-system Active 295d
~ took 6s ❯ kubecm ns kube-public
Error: no Auth Provider found for name "gcp"
Usage:
kubecm namespace [flags]
Aliases:
namespace, ns
Examples:
# Switch Namespace interactively
kubecm namespace
# or
kubecm ns
# change to namespace of kube-system
kubecm ns kube-system
Flags:
-h, --help help for namespace
Global Flags:
--config string path of kubeconfig (default "/Users/cig0/.kube/config")
no Auth Provider found for name "gcp
~ ✖1 ❯ kubecm ns
Error: no Auth Provider found for name "gcp"
Usage:
kubecm namespace [flags]
Aliases:
namespace, ns
Examples:
# Switch Namespace interactively
kubecm namespace
# or
kubecm ns
# change to namespace of kube-system
kubecm ns kube-system
Flags:
-h, --help help for namespace
Global Flags:
--config string path of kubeconfig (default "/Users/cig0/.kube/config")
no Auth Provider found for name "gcp" |
This issue appears to be an authentication issue with |
This problem looks very similar to kubernetes/client-go#242, but I don't have GKE to test whether following the approach in ISSUE solves the problem. |
I could help you with that part, let me know if you need me to test anything. Incidentally if you happen to have access to GCP, you should be able to open a free-tier account: https://cloud.google.com/free |
Thanks for the tip, Happy new year! |
I've just tried to fix this on the master branch, can you pull the code from the master branch, compile and test it? |
You can try the v0.13.1 version and look forward to your feedback. |
Hi,
I got this error message when trying to list the namespaces of my GKE cluster; please find below a sanitised version of
~/.kube/config
:It is worth noting that I'm able to work with this context/cluster using
kubectl
or other CLI tools.% kubecm version
Version: 0.13.0
GoOs: darwin
GoArch: amd64
Thanks! 🙏
The text was updated successfully, but these errors were encountered: