Commit Graph

136 Commits

Author SHA1 Message Date
chenyaqi01
3175c9e226 simplify regexp with raw string 2019-09-20 16:53:56 +08:00
Kubernetes Prow Robot
bd6f58cfcb
Merge pull request #80337 from draveness/feature/remove-deprecated-include-uninitialized-flag
feat: remove deprecated include uninitialized flag
2019-09-10 14:29:15 -07:00
Sean Sullivan
33bf8a8ebd Update PrintOptions to more appropriate GenerateOptions in some cases 2019-08-23 09:25:22 -07:00
Maciej Szulik
09ecba5213
Fix handling empty result when invoking kubectl get 2019-08-16 16:51:48 +02:00
Wei Huang
a4d97cc47d kubectl: eliminate unnecessary blank ending line (#81229)
* kubectl: eliminate unnecessary blank ending line

* address comments and add more tests
2019-08-13 04:50:20 -07:00
draveness
f18f86ad9a feat: remove deprecated include uninitialized flag 2019-08-04 22:39:52 +08:00
Kubernetes Prow Robot
f19863c829
Merge pull request #80873 from tedyu/kube-get-ns
Omit namespace when kubectl get is for the cluster
2019-08-02 20:28:18 -07:00
Ted Yu
e1ee01af48 Omit namespace when kubectl get is for the cluster 2019-08-02 14:13:52 -07:00
Sean Sullivan
e2cae23444 Update gofmt 2019-08-01 13:14:06 -07:00
Sean Sullivan
dc743f7edd Update BUILD files reflecting code move to staging 2019-08-01 13:12:31 -07:00
Sean Sullivan
acece3c296 Update import statements to reflect code move 2019-08-01 11:15:39 -07:00
Sean Sullivan
6c96a059dd Move pkg/kubectl/cmd/util and subdirs to staging 2019-07-29 13:08:41 -07:00
Sean Sullivan
7a64a66d61 Move pkg/kubectl/cmd/util/openapi to staging 2019-07-27 16:18:37 -07:00
Sean Sullivan
70984d8385 Moves pkg/kubectl/util/i18n to staging 2019-07-25 23:09:34 -07:00
Sean Sullivan
67140f13fe Updated dependencies: BUILD/modules.txt 2019-07-18 15:43:26 -07:00
Sean Sullivan
140c62cd4c Update all imports to scheme in staging 2019-07-18 15:32:27 -07:00
Tara Gu
75b18e20d5 Don't print non-error (blank lines in this case) to stdout, and don't print blank lines for empty resources 2019-07-13 21:23:28 -04:00
Sukeesh
b7d2478ac9 flush current namespace when resources are not found 2019-07-10 16:12:48 +09:00
Kubernetes Prow Robot
5625eadd2a
Merge pull request #72416 from liggitt/watch-event-type
Include event type in `kubectl get -w` output
2019-07-09 13:46:24 -07:00
David Eads
09c55bd117 make kubectl --raw consistent for create, update, get, delete 2019-07-09 09:03:56 -04:00
Jordan Liggitt
13273468b4 Add ability to output watch events from kubectl get 2019-06-28 16:24:54 -07:00
Jordan Liggitt
3e7f6e508a Add client-side status object handling 2019-06-28 11:55:31 -07:00
Jordan Liggitt
cf3e75de70 Remove internal object printing from kubectl 2019-06-28 10:54:50 -07:00
Jordan Liggitt
5d508760e3 Fix --watch-only of a single item with table output 2019-06-24 09:34:15 -07:00
Jordan Liggitt
2b65c74b94 Add kubectl get/list/watch tests for table output 2019-06-24 08:49:28 -07:00
Jordan Liggitt
ead86cf350 Test humanreadable table output 2019-06-24 08:34:36 -07:00
Jordan Liggitt
fe339d2420 Fix short buffer error in get test 2019-06-24 08:27:14 -07:00
Mike Dame
084f7f35ac hack/update-vendor.sh 2019-06-20 20:37:38 -04:00
Mike Dame
5f3818230d Move pkg/util/printers to staging and update refs 2019-06-20 20:35:38 -04:00
Peter Swica
123fa89f21 Moved pkg/kubectl/util/term, pkg/kubectl/util/templates, pkg/kubectl/util/interrupt, and pkg/kubectl/util/interrupt to staging 2019-06-20 15:50:16 -04:00
Sean Sullivan
bbc2886a3b Rename NewHumanReadablePrinter to NewTablePrinter 2019-04-29 11:42:04 -07:00
Jordan Liggitt
c758f0af0a Remove legacy table printing and decoding 2019-04-08 12:31:38 -04:00
Kubernetes Prow Robot
c082ace102
Merge pull request #76161 from liggitt/kubectl-watch-table
use server-side printing in `kubectl get -w`
2019-04-08 08:58:48 -07:00
Kubernetes Prow Robot
eaa506c0b4
Merge pull request #75516 from seans3/interrupt-fix
kubectl: Removes dependency on util/interrupt by copying this code into kubectl
2019-04-05 16:46:29 -07:00
Jordan Liggitt
53e55d314a Make sorting printer sort tables in place 2019-04-05 01:20:06 -04:00
Jordan Liggitt
7013827309 Stop special-casing tables in kubectl get to print 'No resources found' 2019-04-05 01:20:01 -04:00
Jordan Liggitt
1c3adedf1c Request and handle server-side printing when watching with kubectl 2019-04-05 01:20:01 -04:00
Jordan Liggitt
34e9d80b87 Refactor kubectl table printing for watch
Warn if sorting and watching are requested together
2019-04-05 01:19:57 -04:00
Jordan Liggitt
135d2f197a Add unit test for sort-by table output 2019-04-05 01:19:57 -04:00
Jordan Liggitt
a347826b4f Add unit test for empty table results 2019-04-05 01:19:57 -04:00
Kubernetes Prow Robot
857cf88a6a
Merge pull request #75165 from qingsenLi/k8s190308-fix-error
fix a mistake in get.go
2019-03-29 10:28:27 -07:00
Sean Sullivan
2345831b82 kubectl: Removes dependency on util/interrupt by copying this code into kubectl 2019-03-20 11:39:57 -07:00
qingsenLi
0c247c9305 fix a mistake 2019-03-08 17:48:18 +08:00
Ilya Dmitrichenko
6d7a9048b6
Move printers & resources packages
These packages deserve to live at the top level of `k8s.io/cli-runtime`,
as they are potentially of wider use than genericclioptions.
2019-03-07 23:00:24 +00:00
Jingfang Liu
b38cf738d6 update kubectl subcommand with -k changes 2019-02-25 16:30:50 -08:00
Kubernetes Prow Robot
120bcd7ddd
Merge pull request #73787 from soltysh/deprecate_export
Deprecate --export flag from get command
2019-02-14 05:18:24 -08:00
WanLinghao
4a1a2c9017 Add a case to illustrate how to use kubectl get -o custom-columns 2019-02-10 14:42:13 +08:00
Maciej Szulik
3f3316be31
Deprecate --export flag from get command 2019-02-06 15:04:57 +01:00
Kubernetes Prow Robot
29e9ff36a9
Merge pull request #73063 from WanLinghao/kubectl_get_custom_clomuns_fix
Improve custom-columns option of `kubectl get ` command
2019-01-31 01:39:49 -08:00
WanLinghao
97ec74df03 The client-go library supports user get Object info in the form of .spec.containers[0:3].name.
But kubectl get command doesn't support this.
This patch fix this, now users could get object info like:
a. kubectl get pod test-pod -o custom-columns=CONTAINER:.spec.containers[0:3].name
b. kubectl get pod test-pod -o custom-columns=CONTAINER:.spec.containers[-2:].name
2019-01-31 09:38:04 +08:00