Re: [kubernetes/kubernetes] kubectl version output isn't human readable (#43750)

3 views
Skip to first unread message

Michail Kargakis

unread,
Mar 28, 2017, 8:26:08 AM3/28/17
to kubernetes/kubernetes, k8s-mirror-cli-misc, Team mention

@kubernetes/sig-cli-misc


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.

Michail Kargakis

unread,
Mar 28, 2017, 8:26:47 AM3/28/17
to kubernetes/kubernetes, k8s-mirror-cli-misc, Team mention

Agreed on this one, we should pretty-print this output.

Shiyang Wang

unread,
Mar 28, 2017, 11:57:24 AM3/28/17
to kubernetes/kubernetes, k8s-mirror-cli-misc, Team mention

@php-coder I would like to change that tomorrow if you are not working on it.

Vyacheslav Semushin

unread,
Mar 28, 2017, 12:05:40 PM3/28/17
to kubernetes/kubernetes, k8s-mirror-cli-misc, Team mention

@shiywang I'm not working on it, so feel free to provide a PR. But I wouldn't do anything untill we get approval from @kubernetes/sig-cli-misc

Andy Goldstein

unread,
Mar 28, 2017, 1:03:40 PM3/28/17
to kubernetes/kubernetes, k8s-mirror-cli-misc, Team mention

cc @kubernetes/sig-testing-misc, don't some of the tests rely on this output?

Joe Finney

unread,
Mar 28, 2017, 1:20:26 PM3/28/17
to kubernetes/kubernetes, k8s-mirror-cli-misc, Team mention

They probably do. There should be a kubectl version -o=json option or something that we can use in test infra.

Alejandro Escobar

unread,
Mar 28, 2017, 1:26:00 PM3/28/17
to kubernetes/kubernetes, k8s-mirror-cli-misc, Team mention

please have a look at:
#39858
and related issue:
#39427

The above is approved and had an lgtm labeled, but removed by the bot because of testing.

Shiyang Wang

unread,
May 27, 2017, 6:06:45 AM5/27/17
to kubernetes/kubernetes, k8s-mirror-cli-misc, Team mention

@kargakis I think we can close this ?

Vyacheslav Semushin

unread,
May 27, 2017, 8:24:55 AM5/27/17
to kubernetes/kubernetes, k8s-mirror-cli-misc, Team mention

@shiywang I don't see that it was fixed. Does the output of kubectl version was improved?

Giovanni Tirloni

unread,
Jun 17, 2017, 8:03:58 PM6/17/17
to kubernetes/kubernetes, k8s-mirror-cli-misc, Team mention

@php-coder kubectl now has a --output option which lets you select between YAML or JSON.

However, I believe this is reversed. The more human-friendly output is hidden behind an option and the machine-friendly output is the default. I believe it should be the opposite.

Kubernetes Submit Queue

unread,
Jul 21, 2017, 8:01:17 PM7/21/17
to kubernetes/kubernetes, k8s-mirror-cli-misc, Team mention

Closed #43750 via #46598.

Culip

unread,
Oct 30, 2020, 12:14:52 PM10/30/20
to kubernetes/kubernetes, k8s-mirror-cli-misc, Team mention

I agree, that minor feature would be great. An obvious workaround is to use kubectl version | tr ',' '\n'. You can also make an alias for your shells.


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

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

Reply all
Reply to author
Forward
0 new messages