Commit Graph

288 Commits (23c7c2e3e7c27c13fc8904708e2b51b786212876)

Author SHA1 Message Date
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
Paul Morie 9c18067e60 Add kubectl support for ConfigMap 2016-01-06 09:03:39 -05:00
deads2k 20f9c2c545 find partial resource matches 2015-12-21 09:26:06 -05:00
k8s-merge-robot 00c754108f Merge pull request #18165 from fabianofranz/fixes_get_show_all
Auto commit by PR queue bot
2015-12-18 20:01:20 -08:00
Abhishek Shah 6f63875165 Reverting 18442 2015-12-17 16:57:29 -08:00
Fabiano Franz 717896eae3 Fixes get --show-all 2015-12-17 18:35:54 -02:00
deads2k 41b78ad2b6 find partial resource matches 2015-12-16 10:19:31 -05:00
k8s-merge-robot 361405e4b3 Merge pull request #18311 from brendandburns/3rdparty3
Auto commit by PR queue bot
2015-12-09 12:19:38 -08:00
k8s-merge-robot 637a33924c Merge pull request #18004 from jiangyaoguo/print-absolute-time-when-watch-event
Auto commit by PR queue bot
2015-12-08 22:58:12 -08:00
Brendan Burns 59bd1d24a2 Fix some typos in third party resource printing 2015-12-07 14:17:55 -08:00
k8s-merge-robot ec1ba7438f Merge pull request #17796 from deads2k/gv-object-typer
Auto commit by PR queue bot
2015-12-07 12:34:55 -08:00
deads2k 66eecb963a update more kubectl bits for groupversion 2015-12-07 09:01:44 -05:00
deads2k f764e0099c Update ObjectTyper to GroupVersion 2015-12-07 08:35:05 -05:00
jiangyaoguo 7153ff80ff print absolute time when watch event 2015-12-05 13:52:53 +08:00
Salvatore Dario Minonne 80575c3093 renaming PodSelector to LabelSelector 2015-12-04 09:49:08 +01:00
deads2k 6231404682 update decoder to use GroupVersion 2015-11-25 12:14:06 -05:00
Avesh Agarwal 3d5207fd73 This commit adds type information to events.
This addresses issue #15624.
2015-11-24 09:59:54 -05:00
Mike Danese 7a7f31ead1 move daemonset to generalized label selector 2015-11-13 10:31:50 -08:00
Janet Kuo b8f97dd185 Remove unhelpful output when jsonpath and template printers fail to print 2015-11-03 15:09:00 -08:00
deads2k fd1c8e096a eliminate cross-namespace HPA escalation attack 2015-11-03 08:05:26 -05:00
Janet Kuo cb2466c50f Remove invalid blank line when printing jobs 2015-10-26 17:23:56 -07:00
Daniel Smith 075d760ad4 Merge pull request #16016 from mqliang/uselessDel
remove useless function
2015-10-26 17:06:42 -07:00
Janet Kuo 013096cb6e Handle the case when min pods is nil for "kubectl get hpa" 2015-10-21 16:43:13 -07:00
mqliang e1b73ed481 delete useless function 2015-10-21 15:38:52 +08:00
Janet Kuo bc16642e6b Fix the incorrect min pods when "kubectl get hpa" 2015-10-19 16:18:27 -07:00
Jerzy Szczepkowski df732f061a HorizontalPodAutoscaler API: removal of ResourceConsumption target, introduction of CPU request utilization & other cleanups. 2015-10-16 07:15:50 +02:00
Mike Danese a7a54cac74 move job to generalized label selector 2015-10-15 07:42:58 -07:00
Janet Kuo b9c8b76b6b address comments 2015-10-13 18:48:27 -07:00
Janet Kuo f39fe2056d Keep Flatten() and format output earlier in kubectl get 2015-10-13 18:48:27 -07:00
Chao Xu 7c9f4cc42f experimental. -> extensions. 2015-10-09 15:49:10 -07:00
Chao Xu 67f316dd19 apis/experimental->apis/extensions 2015-10-09 15:04:41 -07:00
Mike Danese 73f7242027 rename JobStatus.Unsuccessful => JobStatus.Failed, JobStatus.Successful => JobStatus.Succeeded 2015-10-08 10:41:22 -07:00
Eric Tune b4ca15dfce Print namespace when asked for job.
Also print multiple containers if there happen to be multiple.
2015-10-05 10:32:14 -07:00
k8s-merge-robot e330b1197e Merge pull request #14459 from bprashanth/l7_ingress_resource_refactor
Auto commit by PR queue bot
2015-10-02 10:20:48 -07:00
Prashanth Balasubramanian 99b0e051fc Kubectl printer 2015-09-29 18:51:24 -07:00
Jerzy Szczepkowski a5194c5ff4 HorizontalPodAutoscaler.Status kept by value, not by pointer.
HorizontalPodAutoscaler.Status kept by value, not by pointer. Fixes #14567.
2015-09-29 14:25:46 +02:00
k8s-merge-robot c2f76e4ce7 Merge pull request #14106 from jszczepkowski/hpa-api
Auto commit by PR queue bot
2015-09-19 22:23:06 -07:00
Daniel Martí 586cb9126a Move pkg/util.Time to pkg/api/unversioned.Time
Along with our time.Duration wrapper, as suggested by @lavalamp.
2015-09-17 17:51:27 -07:00
Kris f4ad00d9ae Moving Status object to a common package 2015-09-17 14:09:53 -07:00
Jerzy Szczepkowski 7fcf7f1177 Cleanups in HorizontalPodAutoscaler API.
Cleanups in HorizontalPodAutoscaler API: renamed Min/MaxCount to Min/MaxReplicas as Replicas is the proper name used in other objects.
2015-09-17 14:16:43 +02:00
Mike Danese 54b0faf39a rebase onto head 2015-09-15 18:13:28 -07:00
Ananya Kumar 30f5b93d2f Add Kubectl support for Daemon 2015-09-15 18:11:12 -07:00
Maciej Szulik 1b46bc010a Job clients, printer and describer 2015-09-15 13:54:51 +02:00
Daniel Smith ccd9e3e247 Run all automated tools 2015-09-11 16:11:08 -07:00
Daniel Smith 4c2adabf42 move; sed replace 2015-09-11 16:03:22 -07:00
k8s-merge-robot b67aa39c73 Merge pull request #13626 from feihujiang/getTerminatedPodByName
Auto commit by PR queue bot
2015-09-11 12:57:03 -07:00
k8s-merge-robot e46c940cae Merge pull request #13545 from brendandburns/kubectl
Auto commit by PR queue bot
2015-09-10 17:23:11 -07:00
Brendan Burns 56a1cd76cb Address changes. 2015-09-10 13:05:32 -07:00
Brendan Burns b485821bb1 Enable custom columns printing in kubectl 2015-09-10 13:05:32 -07:00
tummychow 78ce5da988 Move util.StringSet into its own package
A lot of packages use StringSet, but they don't use anything else from
the util package. Moving StringSet into another package will shrink
their dependency trees significantly.
2015-09-10 12:04:15 -07:00
feihujiang 008a26f690 Get the terminated pod by name 2015-09-08 14:15:36 +08:00
Dai Zuozhuo 2e2ef3e830 change -o template to -o go-template=... 2015-09-05 22:30:47 +08:00
Quinton Hoole ded8569524 Merge pull request #12908 from mwielgus/kubectl_get_hpa
HorizontalPodAutoscaler in kubectl get
2015-09-04 09:07:08 -07:00
Quinton Hoole e5e2bc9580 Merge pull request #10833 from markturansky/loosen_binding
Allow PV/Claim matching on inexact access modes
2015-09-04 09:06:31 -07:00
Marcin Wielgus 3f21071064 HorizontalPodAutoscaler in kubectl get 2015-09-03 13:49:06 +02:00
Abhi Shah 13784bf9ca Merge pull request #13047 from JanetKuo/kubectl-label-bash-completion
Enable kubectl label resource type bash completion
2015-09-02 15:16:54 -07:00
Brendan Burns 31454d0f46 Merge pull request #12705 from brendandburns/kubectl
Add a printer that knows how to print user-defined columns
2015-09-02 09:47:34 -07:00
Janet Kuo b673920ccf Get printer from factory to retrieve handled resources 2015-09-01 10:20:51 -07:00
Brendan Burns de14623775 Add a printer that knows how to print user-defined columns 2015-09-01 10:11:13 -07:00
nikhiljindal ac0b060e62 Adding a kubectl resource printer for deployments 2015-08-31 14:57:02 -07:00
markturansky 0b6030f50c added better matching for PV access modes 2015-08-27 15:34:07 -04:00
hurf d2d96ff6e1 Add -o name for commands which use printer to output results
Added a new printer which prints 'resource/name' pair of a given
object.
2015-08-26 17:04:23 +08:00
hurf 36987e9dce Move formatLabels function to labels package
As the TODO above the function instructed, move formatLables
function to labels package.
2015-08-23 18:27:48 +08:00
Brendan Burns 5d664892f2 Add a storage implementation for thirdpartyresources. 2015-08-21 17:21:40 -07:00
k8s-merge-robot 44c76d5319 Merge pull request #12957 from smarterclayton/handle_terminating_pods
Auto commit by PR queue bot
2015-08-20 21:47:00 -07:00
Abhishek Shah b6b8e99393 External IPs support. 2015-08-20 16:10:01 -07:00