Comments (9)
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 gke_cluster
to remove sensible information -- everything else is exactly the same.
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"
from kubecm.
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
from kubecm.
Did this error occur in older versions?
This error is thrown by client-go.
from kubecm.
for your kubeconfig, your context named gke_cluster
, Can you describe your operation in detail?
from kubecm.
This issue appears to be an authentication issue with client-go
, thank you for the tip, I will try to fix this.
from kubecm.
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.
from kubecm.
Thanks for the tip, Happy new year!
from kubecm.
I've just tried to fix this on the master branch, can you pull the code from the master branch, compile and test it?
from kubecm.
You can try the v0.13.1 version and look forward to your feedback.
from kubecm.
Related Issues (20)
- Feature request: support completion for sub-commands like switch, delete, rename HOT 3
- error when creating kubeconfig in k8s v1.27.5 HOT 4
- Deleting context removes user even if other context is using it HOT 2
- [TODO] Update go 1.20
- [Feature] docs command
- export kubeconfig causes nil pointer HOT 7
- 这个工具太好用了!!!
- Missing 'v' in documentation HOT 1
- Monthly issue metrics report
- Monthly issue metrics report
- cloud add command fails, if ~/.kube/ does not exits HOT 6
- Monthly issue metrics report
- Monthly issue metrics report
- Monthly issue metrics report
- Monthly issue metrics report
- how to disable output `[Summary] Namespace: 43 Node: 23 Pod: 705` HOT 1
- Monthly issue metrics report
- Non-Interactive kubecm rename: `kubecm rename {existing-name} {new-name}` HOT 2
- Document Cleanup for Kubecm
- Monthly issue metrics report
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubecm.