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

Error: no Auth Provider found for name "gcp" #3

Open
kenske opened this issue Mar 22, 2022 · 6 comments
Open

Error: no Auth Provider found for name "gcp" #3

kenske opened this issue Mar 22, 2022 · 6 comments

Comments

@kenske
Copy link

kenske commented Mar 22, 2022

I'm getting the above error trying to covert the following:

apiVersion: 'kubernetes-client.io/v1'
kind: ExternalSecret
metadata:
  name: db-creds
spec:
  backendType: gcpSecretsManager
  data:
    - key: db
      property: username
      name: DB_USERNAME
    - key: db
      property: password
      name: DB_PASSWORD

Is GCP not supported?

@gusfcarvalho
Copy link
Member

Hi @kenske ! It is compatible with GCP.

Can you provide the options you passed to the tool, and the full output of it?

@cklahre
Copy link

cklahre commented Apr 5, 2022

Running into this as well. It looks like maybe force adding the auth package was the key to get it to work: kubernetes/client-go#242 (comment)

@gusfcarvalho
Copy link
Member

Did you try running the provider binary?

@skikkh
Copy link

skikkh commented Apr 8, 2022

Also, The same phenomenon occurred when I built and ran my self build.
I solved this problem by adding _"k8s.io/client-go/plugin/pkg/client/auth/gcp" to provider.go.

	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/client-go/kubernetes"
    _ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
)

@skikkh
Copy link

skikkh commented Apr 8, 2022

In addition, I was unable to run the binary file on Apple Silicon.

@rnrsr
Copy link
Contributor

rnrsr commented Sep 27, 2022

Also, The same phenomenon occurred when I built and ran my self build. I solved this problem by adding _"k8s.io/client-go/plugin/pkg/client/auth/gcp" to provider.go.

	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/client-go/kubernetes"
    _ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
)

i had to do the same for OIDC. thanks!

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

5 participants