-
Notifications
You must be signed in to change notification settings - Fork 40k
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
kubectl should print usage at the bottom #25640
Conversation
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
2 similar comments
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
@kubernetes/kubectl |
ok to test |
@janetkuo thanks for helping with this. looks like it's ready to merge. |
There are redundant newlines between command description and aliases. Would you fix the template to show only one newline? $ kubectl clusterinfo -h
Display addresses of the master and services with label kubernetes.io/cluster-service=true
Aliases:
cluster-info, clusterinfo |
@janetkuo Done. thanks! |
There are redundant newlines when aliases aren't shown. Fix them and then this LGTM. $ kubectl get -h
Display one or many resources.
Possible resource types include (case insensitive): pods (po), services (svc), deployments,
replicasets (rs), replicationcontrollers (rc), nodes (no), events (ev), limitranges (limits),
persistentvolumes (pv), persistentvolumeclaims (pvc), resourcequotas (quota), namespaces (ns),
serviceaccounts (sa), ingresses (ing), horizontalpodautoscalers (hpa), daemonsets (ds), configmaps,
componentstatuses (cs), endpoints (ep), and secrets.
By specifying the output as 'template' and providing a Go template as the value
of the --template flag, you can filter the attributes of the fetched resource(s).
Examples:
... |
Thanks @janetkuo hopefully fixed :) |
Sub-commands are missing: $ kubectl set -h
Configure application resources
These commands help you make changes to existing application resources.
Global Flags:
... should be $ kubectl set -h
Configure application resources
These commands help you make changes to existing application resources.
Usage:
kubectl set SUBCOMMAND [flags]
kubectl set [command]
Available Commands:
image Update image of a pod template
Global Flags:
... |
@janetkuo thanks for your patience, here's the output from 4 commands
Output from Master : http://paste.openstack.org/show/497959/ |
Sorry for the late reply. I found that we missed 2 newlines between
But it makes me think that maybe we should put |
@janetkuo - tested the following 5 commands. I had to tweak the help template too! kubectl create -h |
GCE e2e build/test passed for commit 911710687283dcb5375c1884a39ec1094a50c15e. |
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
1 similar comment
Can one of the admins verify that this patch is reasonable to test? If so, please reply "ok to test". This message may repeat a few times in short succession due to jenkinsci/ghprb-plugin#292. Sorry. Otherwise, if this message is too spammy, please complain to ixdy. |
@dims thanks; I want to let you know that this needs to wait until after the 1.3 code freeze ends |
@janetkuo of course. Thanks for all your guidance with this. |
GCE e2e build/test passed for commit 4de3f312309d722bb5a5c573ba834d01fba557c4. |
@janetkuo can you please lgtm this please? (if appropriate) |
@dims |
1 similar comment
@dims |
GCE e2e build/test passed for commit 4de3f312309d722bb5a5c573ba834d01fba557c4. |
Override the Usage: output using SetUsageTemplate. Just moved the strings in the template to make sure we print Usage: at the bottom of the output and not at the top. Fixes issue 7496
GCE e2e build/test passed for commit 91f1636. |
@janetkuo ping. this PR is ready again (had slipped 1.3). Thanks in advance! |
So sorry for the late reply. There's a redundant newline below $ kubectl cluster-info -h
Display addresses of the master and services with label kubernetes.io/cluster-service=true
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
Aliases:
cluster-info, clusterinfo
Available Commands: but this problem existed in the old code so fixing it is optional. Also how do you feel about renaming Otherwise this LGTM. Thanks much! |
@janetkuo funny i see that extra line in the current output as well (without my patch) |
LGTM as discussed in Slack channel. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit 91f1636. |
Automatic merge from submit-queue |
Automatic merge from submit-queue Follow up to PR 25640 - Cleanup newline and tweak help text Follow up to PR #25640 * Remove redundant newline below Aliases: * Renaming "Available Commands:" to "Available Sub-commands:"
Override the Usage: output using SetUsageTemplate. Just moved
the strings in the template to make sure we print Usage: at
the bottom of the output and not at the top.
Fixes issue #7496