Re: [kubernetes/kubernetes] Need a "whoami" sub-command for kubectl (#65798)

116 views
Skip to first unread message

Kim Min

unread,
Jul 4, 2018, 12:31:47 AM7/4/18
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

@kubernetes/sig-cli-feature-requests 😃

—
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Kim Min

unread,
Jul 5, 2018, 1:19:51 PM7/5/18
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

/assign

Kim Min

unread,
Jul 5, 2018, 1:19:51 PM7/5/18
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Since that no one is interested to give it a try for now...
I'll raise a PR for this possibly

k8s-ci-robot

unread,
Jul 5, 2018, 11:33:41 PM7/5/18
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Closed #65798.

Jordan Liggitt

unread,
Jul 5, 2018, 11:33:41 PM7/5/18
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Duplicate of #30784

/close

Operations Research Engineering Software+

unread,
May 20, 2019, 4:02:56 PM5/20/19
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

duplicate of unresolved issue?

Ahmet Alp Balkan

unread,
Nov 20, 2019, 3:35:31 PM11/20/19
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

FWIW there's a kubectl plugin on Krew that does exactly this:

$ kubectl krew install whoami
$ kubectl whoami
f...@gmail.com

—
You are receiving this because you are on a team that was mentioned.

Reply to this email directly, view it on GitHub, or unsubscribe.

Vaccano

unread,
Apr 23, 2021, 12:21:46 AM4/23/21
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

FWIW there's a kubectl plugin on Krew that does exactly this:

$ kubectl krew install whoami
$ kubectl whoami
f...@gmail.com

Note that this particular Krew plugin does not work on a Windows machine. It gives the following error:

failed to install plugin "whoami": plugin "whoami" does not offer installation for this platform

Anton Bessonov

unread,
May 25, 2021, 5:05:57 AM5/25/21
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

@ahmetb Can you explain why did you down vote the post from @Vaccano further?

Deepak Deore

unread,
Feb 6, 2022, 10:49:56 PM2/6/22
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

FWIW there's a kubectl plugin on Krew that does exactly this:

$ kubectl krew install whoami
$ kubectl whoami
f...@gmail.com

this plugin now has --all flag to show groups info as well

$ k whoami --all
User:	someUser
Groups:
	system:masters
	system:authenticated
ARN:
	arn:aws:sts::123456789:assumed-role/someIAMrole/someUser

—


Reply to this email directly, view it on GitHub, or unsubscribe.

Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are on a team that was mentioned.Message ID: <kubernetes/kubernetes/issues/65798/1031044342@github.com>

Ezequiel Muns

unread,
Aug 7, 2022, 12:02:34 PM8/7/22
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Note that this particular Krew plugin does not work on a Windows machine. It gives the following error:

failed to install plugin "whoami": plugin "whoami" does not offer installation for this platform

You can install it manually if you have go installed:

 go install github.com/rajatjindal/kubectl-whoami@latest
 cp $GOPATH/bin/kubectl-whoami.exe ~/.krew/bin/

Still, would be nice if Windows installation was made more easily available :) @rajatjindal

—
Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are on a team that was mentioned.Message ID: <kubernetes/kubernetes/issues/65798/1207437769@github.com>

Rajat Jindal

unread,
May 29, 2024, 12:45:11 AM5/29/24
to kubernetes-sig-cli-feature-requests
this is a very late response to this thread, but kubectl-whoami supports windows as of Mar 2023.
Reply all
Reply to author
Forward
0 new messages