rajatjindal / kubectl-whoami

This plugin gets the subject name using the effective kubeconfig
Apache License 2.0
120 stars 14 forks source link

command produces no result. #7

Closed st33v closed 2 years ago

st33v commented 4 years ago

I'm using the AWS authenticator and I'm not able to get this comment to produce a username for me.

❯ /usr/local/bin/kubectl-whoami --insecure-skip-tls-verify ❯

I've tried the latest release from GitHub and the install vie Krew. Both produce the same result.

rajatjindal commented 4 years ago

Thank you for reporting the issue. Did it print any error message on the console?

Could u check return code after running it?

st33v commented 4 years ago

nope... no output but has exit code == 0

❯ kubectl whoami ❯ echo $? 0

I CAN dump a user token and decode it using whoami --token but it seems like whom doesn't know how to handle aws's external authenticator.

rajatjindal commented 4 years ago

thanks for more details.

could you please provide more info about the cluster setup, so that I can try to reproduce the issue on my side:

I think following info will be useful, but please add any more info that you can provide:

Thanks again

rajatjindal commented 4 years ago

I think i have some idea why this might be happening

Can u pls share your kubeconfig (with all sensitive data redacted)

Many thanks

rajatjindal commented 3 years ago

Hi (again) @st33v, long time :)

i have pushed a fix with version v0.0.36. could you please try the version and let me know if that fixes your issue.

sorry for all the delay.

rajatjindal commented 2 years ago

closing the issue as fixed. please feel free to reopen if that is not the case.