Giter Club home page Giter Club logo

Comments (9)

cig0 avatar cig0 commented on August 22, 2024 1

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.

cig0 avatar cig0 commented on August 22, 2024 1

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.

sunny0826 avatar sunny0826 commented on August 22, 2024

Did this error occur in older versions?
This error is thrown by client-go.

from kubecm.

sunny0826 avatar sunny0826 commented on August 22, 2024

for your kubeconfig, your context named gke_cluster, Can you describe your operation in detail?

from kubecm.

sunny0826 avatar sunny0826 commented on August 22, 2024

This issue appears to be an authentication issue with client-go, thank you for the tip, I will try to fix this.

from kubecm.

sunny0826 avatar sunny0826 commented on August 22, 2024

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.

sunny0826 avatar sunny0826 commented on August 22, 2024

Thanks for the tip, Happy new year!

from kubecm.

sunny0826 avatar sunny0826 commented on August 22, 2024

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.

sunny0826 avatar sunny0826 commented on August 22, 2024

You can try the v0.13.1 version and look forward to your feedback.

from kubecm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.