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

Unable to load Kubeconfig with OIDC auth #20

Open
pbar1 opened this issue Jul 22, 2021 · 0 comments
Open

Unable to load Kubeconfig with OIDC auth #20

pbar1 opened this issue Jul 22, 2021 · 0 comments

Comments

@pbar1
Copy link

pbar1 commented Jul 22, 2021

When attempting to run the program, it fails when attempting to build the Kubernetes client due to not supporting the OIDC auth method.

This is relatively straightforward to remediate - here's an example from K8s client-go:

import (
	// Uncomment to load all auth plugins
	_ "k8s.io/client-go/plugin/pkg/client/auth"
	
	// Or uncomment to load specific auth plugins
	// _ "k8s.io/client-go/plugin/pkg/client/auth/azure"
	// _ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
	// _ "k8s.io/client-go/plugin/pkg/client/auth/oidc"
	// _ "k8s.io/client-go/plugin/pkg/client/auth/openstack"
)
@pbar1 pbar1 changed the title Unable to load Kubeconfig with OIDC auth plugin Unable to load Kubeconfig with OIDC auth Jul 22, 2021
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

1 participant