Skip to content
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

Panic: no Auth Provider found for name "gcp" #839

Closed
3j0s opened this issue Aug 5, 2020 · 2 comments
Closed

Panic: no Auth Provider found for name "gcp" #839

3j0s opened this issue Aug 5, 2020 · 2 comments

Comments

@3j0s
Copy link

3j0s commented Aug 5, 2020

Greetings!

I'm using the configuration as follow in this Pastebin:
Panic: no Auth Provider found for name "gcp"

This is the Pastebin go.mod: go.mod

I'm running:

  • GKE Cloud: 1.17.9-gke.600

  • GO: go1.14.6 linux/amd64

  • Kubectl: Major:"1", Minor:"18", GitVersion:"v1.18.3"

  • Ubuntu: 5.3.0-1032-gcp add more func in config.go #34~18.04.1-Ubuntu SMP

This is the error that I got:

Log file created at: 2020/08/05 05:49:49 Running on machine: gke-admin Binary: Built with gc go1.14.6 for linux/amd64 Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg F0805 05:49:49.453823 20353 k8s-deploy.go:62] Could not read kubeconfig /home/infraops/.kube/config: no Auth Provider found for name "gcp"

Can anybody help me with this please?, thx in advance

@liggitt
Copy link
Member

liggitt commented Aug 5, 2020

have you enabled the auth plugin? see https://github.com/kubernetes/client-go/blob/master/examples/out-of-cluster-client-configuration/main.go#L33-L40 for examples of enabling all auth plugins or just the gcp one

@3j0s
Copy link
Author

3j0s commented Aug 5, 2020 via email

@3j0s 3j0s closed this as completed Aug 12, 2020
jasonBirchall added a commit to ministryofjustice/cloud-platform-cli that referenced this issue Oct 28, 2021
When users run the duplicate command with an OIDC kubeconfig they're met with the following error:

```bash
Error during command execution: no Auth Provider found for name "oidc"
```

This is because we need to enable the auth package to make this work. [This](kubernetes/client-go#839) issue describes it far better than I can.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants