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

oidc-login not found on Linux #272

Open
unyieldinggrace opened this issue Mar 26, 2024 · 1 comment
Open

oidc-login not found on Linux #272

unyieldinggrace opened this issue Mar 26, 2024 · 1 comment

Comments

@unyieldinggrace
Copy link

unyieldinggrace commented Mar 26, 2024

I have kubectl installed and the oidc-login plugin installed via krew. When I run kubectl oidc-login, it is found just fine. But when I run kubefwd I get an error saying that the oidc-login plugin is not found.

I'm not sure why this would be. I don't think kubefwd is using its own separate instance of kubectl without the plugin installed, because kubefwd seems to find the context based on the kubectl config.

Any ideas? Do I need to specify a path to a plugin dir or something?

Command+Output:

$> sudo --preserve-env ./kubefwd services --context k2-qual-au --namespace quality -c ~/.kube/config
INFO[09:46:55]  _          _           __             _     
INFO[09:46:55] | | ___   _| |__   ___ / _|_      ____| |    
INFO[09:46:55] | |/ / | | | '_ \ / _ \ |_\ \ /\ / / _  |    
INFO[09:46:55] |   <| |_| | |_) |  __/  _|\ V  V / (_| |    
INFO[09:46:55] |_|\_\\__,_|_.__/ \___|_|   \_/\_/ \__,_|    
INFO[09:46:55]                                              
INFO[09:46:55] Version 1.22.5                               
INFO[09:46:55] https://github.com/txn2/kubefwd              
INFO[09:46:55]                                              
INFO[09:46:55] Press [Ctrl-C] to stop forwarding.           
INFO[09:46:55] 'cat /etc/hosts' to see all host entries.    
INFO[09:46:55] Loaded hosts file /etc/hosts                 
INFO[09:46:55] HostFile management: Original hosts backup already exists at /home/nick/hosts.original 
error: unknown command "oidc-login" for "kubectl"
FATA[09:46:55] Error connecting to k8s cluster: Get "https://F7CFCB80E3B4*****REDACTED*****.gr7.ap-southeast-2.eks.amazonaws.com/version": getting credentials: exec: executable kubectl failed with exit code 1
@cjimti
Copy link
Member

cjimti commented Apr 1, 2024

@unyieldinggrace kubefwd does not use kubectl , it communicates with with Kubernetes directly using the API.

It looks like your oidc-login plugin is needed for authentication, might take a look at this: lensapp/lens#6317 (comment)

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