Commit Graph

253 Commits (0d3be6a316b39a71b62d45272d339f7fa9162165)

Author SHA1 Message Date
AdoHe 9d28bab847 make kubectl get ingress output more consistency 2016-06-04 22:43:51 -04:00
Fabiano Franz 8f62a196fd Expose print utils to append labels 2016-06-03 15:00:50 -03:00
Clayton Coleman c6961d6fd6
Remove runtime.Typer, reduce to ObjectKinds(1) (3)
Remove the unnecessary variants, which avoids allocations in several
core paths.
2016-05-21 23:55:42 -04:00
Casey Davenport 47248f3698 v1beta1 NetworkPolicy API definition and client support 2016-05-19 19:02:54 -07:00
k8s-merge-robot 5ffebfa303 Merge pull request #24016 from XiaoningDing/federation-kubectl
Automatic merge from submit-queue

Federation kubectl for clusters

add federation/clusters resource to kubectl
#23653, requires #23847

<!-- Reviewable:start -->
---
This change is [<img src="http://reviewable.k8s.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](http://reviewable.k8s.io/reviews/kubernetes/kubernetes/24016)
<!-- Reviewable:end -->
2016-05-18 02:23:07 -07:00
Clayton Coleman 2a53330700
Describe and get should show init containers 2016-05-17 00:29:54 -04:00
jianhuiz 586eea0691 add get/create/delete for clusters 2016-05-16 16:34:08 -07:00
Jeff Lowdermilk 8329b7d624 Merge pull request #25305 from AdoHe/pod_ip
add ip to pod wide output
2016-05-13 15:05:30 -07:00
Clayton Coleman 51b624103f
Change ConvertToVersion to use GroupVersion
Long delayed refactor, avoids a few more allocations.
2016-05-12 10:10:35 -04:00
AdoHe e830d03ffc add ip to pod wide output 2016-05-12 00:30:25 -04:00
Paul Weil 56193b7140 PSP types 2016-05-11 18:07:35 -04:00
Piotr Szczesniak 212b459817 Move internal types of hpa from pkg/apis/extensions to pkg/apis/autoscaling 2016-05-09 09:18:13 +02:00
Tim Hockin 527cb50583 Demand at least go1.6 2016-05-08 20:30:37 -07:00
Clayton Coleman fdb110c859
Fix the rest of the code 2016-04-29 17:12:10 -04:00
k8s-merge-robot 373a3ece84 Merge pull request #24475 from k82/k8s-24411
Automatic merge from submit-queue

Clarify `kubectl get service` output.

Pull request for #24411 .
2016-04-26 13:45:09 -07:00
Maciej Szulik a3b4447305 Move internal types of job from pkg/apis/extensions to pkg/apis/batch 2016-04-25 11:03:54 +02:00
Klaus Ma b6d2c2b295 Clarify kubectl output. 2016-04-21 15:35:32 +08:00
Prashanth Balasubramanian 0ac10c6cc2 PetSet type, apps apigroup 2016-04-20 18:49:31 -07:00
Brendan Burns be6c5b332b Add third party support to kubectl 2016-03-31 10:53:32 -07:00
k8s-merge-robot b8e390a0f3 Merge pull request #22824 from brendandburns/enable
Auto commit by PR queue bot
2016-03-24 22:26:39 -07:00
goltermann 34d4eaea08 Fixing several (but not all) go vet errors. Most are around string formatting, or unreachable code. 2016-03-22 17:26:50 -07:00
Brendan Burns 87a1635c93 Machine generated stuff 2016-03-22 14:41:37 -07:00
AdoHe 9788101e11 update wide option output 2016-03-11 00:29:37 -05:00
Eric Tune 4d090bfb09 Rename PodSecurityPolicy fields
In podSecurityPolicy:
1. Rename .seLinuxContext to .seLinux
2. Rename .seLinux.type to .seLinux.rule
3. Rename .runAsUser.type to .runAsUser.rule
4. Rename .seLinux.SELinuxOptions

1,2,3 as suggested by thockin in #22159.
I added 3 for consistency with 2.
2016-03-03 11:49:48 -08:00
AdoHe c56c4c87f7 kubectl add AGE column to job, ingress and daemonset 2016-02-28 00:59:01 -05:00
AdoHe aa6f07636b kubectl add job DESIRED column 2016-02-25 10:43:04 -05:00
AdoHe aa5c036a5c add DESIRED and CURRENT columns to rcs,ds,rs 2016-02-23 10:11:19 -05:00
k8s-merge-robot 725a8e8b36 Merge pull request #21369 from AdoHe/kubectl_change_column_titles
Auto commit by PR queue bot
2016-02-23 05:20:38 -08:00
AdoHe 10feb3e6fd change CONTROLLER, ReplicaSet and Job column titles to NAME 2016-02-16 23:14:12 -05:00
k8s-merge-robot 134d44cf2b Merge pull request #20409 from AdoHe/kubectl_ingress_labels
Auto commit by PR queue bot
2016-02-15 10:59:12 -08:00
AdoHe f6b5eca11c kubectl print ingress add column labels 2016-02-14 04:28:44 -05:00
AdoHe 53d4b15b87 move columns into wide option to make result more readable 2016-02-14 03:55:00 -05:00
k8s-merge-robot 66e872227a Merge pull request #20886 from mqliang/ReplicaSet-kubectl
Auto commit by PR queue bot
2016-02-10 06:16:03 -08:00
mqliang b5e99be81c implement kubectl get/describe for ReplicaSet 2016-02-09 13:56:21 +08:00
deads2k 6d71421ae1 eliminate mixed case from RESTMapper 2016-02-08 15:33:31 -05:00
Daniel Smith 9441721fee Merge pull request #19689 from AdoHe/kubectl_label_display
kubectl add show-labels flag to make it more readable
2016-02-05 14:08:37 -08:00
Paul Weil 03261146b0 api 2016-02-05 08:45:50 -05:00
Eric Tune 6133cb1f21 Move extensions.LabelSelector to unversioned.
Move type LabelSelector and type LabelSelectorRequirement from pkg/apis/extensions
This avoids an import loop when Job (and later DaemonSet, Deployment, ReplicaSet)
are moved out of extensions to new api groups.

Also Move LabelSelectorAsSelector utility from pkg/apis/extensions/ to pkg/api/unversioned/
Also its test.
Also LabelSelectorOp* constants.
Also the pkg/apis/extensions/validation functions ValidateLabelSelectorRequirement and
ValidateLabelSelector move to pkg/api/unversioned

The related type in pkg/apis/extensions/v1beta1/ is staying there.  I might move
it in another PR if neccessary.
2016-02-04 13:46:34 -08:00
AdoHe 714d12cf72 kubectl add show-labels flag to make it more readable 2016-02-04 02:08:44 -05:00
k8s-merge-robot 6f66dbb9ab Merge pull request #20127 from smarterclayton/remove_conversion_scheme
Auto commit by PR queue bot
2016-01-30 12:39:44 -08:00
Clayton Coleman 60b66665e1 Move conversion.Scheme to runtime
There is only one type registry to rule them all
2016-01-30 14:12:40 -05:00
k8s-merge-robot 311d8f8ab9 Merge pull request #20009 from janetkuo/kubectl-get-deployments
Auto commit by PR queue bot
2016-01-30 04:16:27 -08:00
k8s-merge-robot e963e4ad07 Merge pull request #19866 from liggitt/export_printoptions
Auto commit by PR queue bot
2016-01-30 01:03:00 -08:00
k8s-merge-robot 7912682595 Merge pull request #20226 from smarterclayton/fix_extract_list
Auto commit by PR queue bot
2016-01-29 17:15:30 -08:00
Janet Kuo f49aef535d Print availableReplicas when kubectl get deployments 2016-01-28 20:11:59 -08:00
liggitt 5a59dac0dd Export PrintOptions struct 2016-01-28 20:12:37 -05:00
Paul Morie 9030f16071 Move ConfigMap to main API 2016-01-28 17:07:05 -05:00
Clayton Coleman 71a13f7f4b ExtractList should handle v1.RawExtension correctly
Also fixes CustomColumnPrinter to pass decoder in, and ensures a test
case tests the combined path.
2016-01-27 15:30:21 -05:00
Clayton Coleman 2fd38a7dc0 Break kubectl from assuming details of codecs
Most of the logic related to type and kind retrieval belongs in the
codec, not in the various classes. Make it explicit that the codec
should handle these details.

Factory now returns a universal Decoder and a JSONEncoder to assist code
in kubectl that needs to specifically deal with JSON serialization
(apply, merge, patch, edit, jsonpath). Add comments to indicate the
serialization is explicit in those places. These methods decode to
internal and encode to the preferred API version as previous, although
in the future they may be changed.

React to removing Codec from version interfaces and RESTMapping by
passing it in to all the places that it is needed.
2016-01-22 13:27:26 -05:00
Clayton Coleman fb4ea845f1 resource_printer was not leveraging runtime interfaces
In general, everything in kubectl/* needs to be ignorant of api/* unless
it deals with a concrete type - this change forces resource_printer to
accept interface abstractions (that are already part of kubectl).
2016-01-22 13:27:25 -05:00