-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Comments
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 |
Regards!
Thx for your response, when I enabled the plugin it threw me the following
error:
~] ./k8s-deploy.go:37:9: imported and not used: "
k8s.io/client-go/plugin/pkg/client/auth/gcp"
But, 'cause you ask me about it, I uncommented the line again and I solve
the problem with this alias " _ ", so the import plugin stayed like this:
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
Now, it's working, sorry for my lack of experience.
Thank you again.
…On Wed, Aug 5, 2020 at 8:54 AM Jordan Liggitt ***@***.***> wrote:
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
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#839 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABH3UJT5MZISJSSQTJNUYYDR7FJAHANCNFSM4PVDZSGA>
.
|
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
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
The text was updated successfully, but these errors were encountered: