Commit Graph

549 Commits (326999e30c6b0a61dfc5f8f5e47133ba0f16b217)

Author SHA1 Message Date
Kubernetes Prow Robot 274876ef9a
Merge pull request #77448 from smarterclayton/api_serve
Support meta.k8s.io/v1 Table and PartialObjectMetadata requests to the API
2019-05-10 21:30:37 -07:00
Clayton Coleman 33a3e325f7
API server should offer metav1 Table/Partial transforms
Now that internal types are equivalent, allow the apiserver to serve
metav1 and metav1beta1 depending on the client. Test that in the
apiserver integration test and ensure we get the appropriate responses.

Register the metav1 type in the appropriate external locations.
2019-05-10 15:29:07 -04:00
Kubernetes Prow Robot 548bf0afe5
Merge pull request #77580 from liggitt/fix-list-interface
Fix unstructured list interface compatibility, fix kubectl paging
2019-05-08 20:13:26 -07:00
Jordan Liggitt e5778f05b9 Fix unstructured list interface compatibility, fix kubectl paging 2019-05-08 02:00:18 -04:00
Sean Sullivan 41b84b7f6e Unexport PrintTable function 2019-05-06 22:16:45 -07:00
Sean Sullivan 13f3f11f52 tableprinter: simplifies default printer handler 2019-05-03 11:46:10 -07:00
Kubernetes Prow Robot f6ab463695
Merge pull request #76647 from cwdsuzhou/add_pv_test_in_printer
Add some tests for printing pv
2019-05-01 14:32:17 -07:00
Baasbank d97b7f20f8 fixes golint errors in pkg/printers/storage
fixes golint errors in pkg/printers

fixes golint errors for pkg/printers/internalversion

implements recommended changes
2019-05-01 17:02:55 +01:00
Sean Sullivan bbc2886a3b Rename NewHumanReadablePrinter to NewTablePrinter 2019-04-29 11:42:04 -07:00
Kubernetes Prow Robot 7790fbeed1
Merge pull request #76746 from seans3/table-printer-split
Split humanreadble.go into tablegenerator.go and tableprinter.go
2019-04-26 02:06:32 -07:00
caiweidong 6872cf2a55 Support print volumeMode using kubectl get pv/pvc -o wide 2019-04-24 23:30:57 +08:00
Davanum Srinivas 7b8c9acc09
remove unused code
Change-Id: If821920ec8872e326b7d85437ad8d2620807799d
2019-04-19 08:36:31 -04:00
Sean Sullivan 0501fecad0 Split humanreadble.go into tablegenerator.go and tableprinter.go 2019-04-18 13:40:39 -07:00
caiweidong f1c8bf887b add some test for printing pv
fix collision
2019-04-18 13:41:45 +08:00
Kubernetes Prow Robot 88d44f49c7
Merge pull request #76681 from seans3/humanreadable-cleanup
Removed unused code in humanreadable.go
2019-04-17 18:52:03 -07:00
Kubernetes Prow Robot 944f76bfa6
Merge pull request #76673 from seans3/table-print-split
Rename TablePrinter interface to TableGenerator
2019-04-17 13:40:35 -07:00
Sean Sullivan b3237ed0b7 Removed unused code in humanreadable.go 2019-04-17 10:45:08 -07:00
Sean Sullivan b99f49b5b3 Removes test-only skipTabWriter from HumanReadablePrinter 2019-04-16 18:12:28 -07:00
Sean Sullivan abfc5bbbf7 Rename TablePrinter interface to TableGenerator 2019-04-16 12:55:30 -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
Bobby (Babak) Salamat 16a7cbd320 generated files 2019-04-05 14:30:52 -07:00
Bobby (Babak) Salamat 8574e3e3f4 Use Scheduling V1 API instead of Scheduling v1beta1 2019-04-05 14:21:45 -07:00
Jordan Liggitt 1c3adedf1c Request and handle server-side printing when watching with kubectl 2019-04-05 01:20:01 -04:00
Kubernetes Prow Robot 531dbd409f
Merge pull request #75445 from shinytang6/enhance/fmt
Replace all time.Now().Sub with time.Since
2019-03-26 13:55:17 -07:00
shinytang6 5c9f4d9dc6 replace time.Now().Sub with time.Since 2019-03-21 18:02:55 +08:00
Clayton Coleman 3230a0b4fd
Support Table and PartialObjectMetadata on watch
Clean up the code paths that lead to objects being transformed and output with negotiation.
Remove some duplicate code that was not consistent. Now, watch will respond correctly to
Table and PartialObjectMetadata requests. Add unit and integration tests.

When transforming responses to Tables, only the first watch event for a given type will
include the columns. Columns will not change unless the watch is restarted.

Add a volume attachment printer and tighten up table validation error cases.

Disable protobuf from table conversion because Tables don't have protobuf because they
use `interface{}`
2019-03-08 13:03:59 -05:00
Kubernetes Prow Robot f229aa0ad6
Merge pull request #75044 from errordeveloper/move-cli-runtime-subpackages
Move printers & resources packages
2019-03-08 05:43:26 -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
Tim Allclair 820a1dc96b Add node.k8s.io/v1beta1 API 2019-03-07 11:57:12 -08:00
Jordan Liggitt 6c0b1b87f0 generated files 2019-02-20 16:41:14 -05:00
Jordan Liggitt 47cb9559be Move internal Ingress type from extensions to networking 2019-02-20 16:41:12 -05:00
Kubernetes Prow Robot 400502577c
Merge pull request #73894 from smarterclayton/event_involved
Print the involved object in the event table as resource/name
2019-02-13 14:31:50 -08:00
Kubernetes Prow Robot 29638dd68f
Merge pull request #67746 from WanLinghao/show-all-remove
Clean deprecated `ShowAll` variable in PrintOptions
2019-02-12 18:45:02 -08:00
WanLinghao de85b7c8a8 Clean deprecated `ShowAll` variable in PrintOptions 2019-02-11 09:18:40 +08:00
Clayton Coleman 25e0a8f56c
Print the involved object in the event table as resource/name
The involved object is important and only some events include its
name in the message. Change the `Kind` column to `Object` and print
the object in `resource/name` form to allow copy and paste
to `kubectl get`. Also move the source field column to the right
of involved object since it is related.
2019-02-10 20:16:07 -05:00
Roy Lenferink b43c04452f Updated OWNERS files to include link to docs 2019-02-04 22:33:12 +01:00
Jordan Liggitt 2b1a2d361f Use tabwriter with remembered column widths 2019-01-01 22:27:36 -05:00
wojtekt 9664779bdd Autogenerated code 2018-12-20 20:22:11 +01:00
wojtekt 73d14dede6 Promote Lease API to v1 2018-12-20 15:39:57 +01:00
k8s-ci-robot 2e80c3a0b2
Merge pull request #69874 from stewart-yu/patch-1
fix some wrong type in printers.go
2018-11-28 23:31:10 -08:00
zuoxiu.jm da9387131e prune internal clients from kubectl describer 2018-11-16 00:11:10 +08:00
k8s-ci-robot 68b4be3e19
Merge pull request #70775 from freehan/pod-ready-cli
add readiness gates in kubectl extended output for pods
2018-11-13 14:59:18 -08:00
k8s-ci-robot a88f2973e0
Merge pull request #70466 from Pingan2017/get-statefulset
Improve human-readable output of Deployments and StatefulSets
2018-11-13 14:59:08 -08:00
Sean Sullivan e0b712d428 kubectl: move custom columns printers and flags 2018-11-12 14:31:59 -08:00
Davanum Srinivas 954996e231
Move from glog to klog
- Move from the old github.com/golang/glog to k8s.io/klog
- klog as explicit InitFlags() so we add them as necessary
- we update the other repositories that we vendor that made a similar
change from glog to klog
  * github.com/kubernetes/repo-infra
  * k8s.io/gengo/
  * k8s.io/kube-openapi/
  * github.com/google/cadvisor
- Entirely remove all references to glog
- Fix some tests by explicit InitFlags in their init() methods

Change-Id: I92db545ff36fcec83afe98f550c9e630098b3135
2018-11-10 07:50:31 -05:00
Pingan2017 182a66f9b7 add Ready column for kubectl get sts command 2018-11-10 10:40:33 +08:00
Minhan Xia 55d88c5d0b add description for pod readiness gate 2018-11-08 18:17:59 -08:00
k8s-ci-robot f212b9db23
Merge pull request #70598 from dims/switch-from-sigs.k8s.io/yaml-to-ghodss/yaml
Switch to sigs.k8s.io/yaml from ghodss/yaml
2018-11-08 10:57:36 -08:00
Minhan Xia c987e95282 add readiness gates column in the wide printout for pod 2018-11-07 16:45:49 -08:00