Commit Graph

76 Commits

Author SHA1 Message Date
Clayton Coleman
35a6bfbcee
generated: refactor 2016-11-23 22:30:47 -06:00
deads2k
61673c4b39 make kubectl get generic with respect to objects 2016-11-04 09:04:57 -04:00
deads2k
771915c6c4 make shortcut expanding restmapper handle all 2016-09-15 11:03:51 -04:00
lojies
f81fef1f04 use valid_resources to replace kubectl.PossibleResourceTypes 2016-08-19 09:42:46 +08:00
Mike Danese
0ca2511b37 add shortname for certificate signing request 2016-08-05 14:17:14 -07:00
Daniel Smith
b712bfd7ac Revert "Extend all to more resources" 2016-08-01 21:51:57 -07:00
k8s-merge-robot
95b4572e7c Merge pull request #28955 from dims/roadmap-extend-all
Automatic merge from submit-queue

Extend all to more resources

Added more things from the list here:
https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/cmd/cmd.go#L159

Note, did not add events as it did not seem useful to me. Since
this is just a list of messages generated by the system.

Related to a suggestion in issue #22337
2016-08-01 10:07:01 -07:00
lojies
79f09cb687 add shorthand cm for configmaps 2016-07-27 10:54:11 +08:00
Davanum Srinivas
ccf4e4d61e Extend all to more resources
Added more things from the list here:
https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/cmd/cmd.go#L159

Update the devel/kubectl-conventions.md with the rules mentioned by
a few folks on which resources could be added to the special 'all' alias

Related to a suggestion in issue #22337
2016-07-24 21:14:50 -04:00
Clayton Coleman
c077bac341
Implement a RESTMappings method
With the introduction of batch/v1 and batch/v2alpha1, any
MultiRESTMapper that has per groupversion mappers (as a naive discovery
client would create) would end up being unable to call RESTMapping() on
batch.Jobs. As we finish up discovery we will need to be able to choose
prioritized RESTMappings based on the service discovery doc.

This change implements RESTMappings(groupversion) which returns all
possible RESTMappings for that kind.  That allows a higher level call to
prioritize the returned mappings by server or client preferred version.
2016-07-13 21:18:53 -04:00
Sergey Lukjanov
3c0f0474d3 Add "deploy" abbrev for deployments to kubectl 2016-07-12 16:52:17 +03:00
k8s-merge-robot
b71b6eb8e8 Merge pull request #25646 from nhlfr/kubectl-petset-resource
Automatic merge from submit-queue

Include petsets in kubectl valid commands

Petsets are already implemented in kubectl, but there were no hints
for that subcommand.

Fixes #25615
2016-07-08 16:36:54 -07:00
juanvallejo
7df60d6b64 display resource type as part of its name 2016-07-01 12:58:02 -04:00
David McMahon
ef0c9f0c5b Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
Michal Rostecki
d285faaf8a Include petsets in kubectl valid commands
Petsets are already implemented in kubectl, but there were no hints
for that subcommand.

Fixes #25615
2016-06-28 08:07:11 +02:00
Gyu-Ho Lee
a14a288c3f pkg/kubectl: preallocate slice
To avoid slice growth with append operations.
2016-05-29 02:09:39 -07:00
derekwaynecarr
25ed62c3ea Fix kubectl create secret/configmap to allow = values 2016-05-04 17:14:12 -04:00
Dr. Stefan Schimanski
7e0bb885f1 Make kubectl bash completion namespace aware and add noun aliases
- add namespace filtering to bash completion
- add --namespace flag bash completion
- add bash completion noun aliases
- adapt to new cobra package structure
2016-04-03 16:25:56 +02:00
Brendan Burns
be6c5b332b Add third party support to kubectl 2016-03-31 10:53:32 -07:00
Lucas Käldström
3507bf814f Add sa as a shorthand for serviceaccounts 2016-03-25 23:28:52 +02:00
Janet Kuo
e93b855242 Update kubectl help for 1.2 resources 2016-03-22 14:14:35 -07:00
deads2k
94d683e89b fix ShortcutRESTMapper and prevent it from ever silently failing again 2016-02-25 07:35:22 -05:00
Madhusudan.C.S
781480d7fe Add DaemonSets and Deployments to valid resources list in kubectl. 2016-02-23 11:19:19 -08:00
Paul Morie
51a9c2c9ba Add kubectl create configmap 2016-02-18 21:24:21 -05:00
deads2k
9901a386c3 remove ResourceIsValid 2016-02-15 07:49:48 -05:00
Madhusudan.C.S
4f9b8b2bfc Link all the ReplicaSet controller boilerplate together.
1. Enable replica set in controller manager.
2. Enable replica set etcd storage in master package.
3. Add replica set support to kubectl commands.
2016-02-05 21:05:10 -08:00
Paul Weil
03261146b0 api 2016-02-05 08:45:50 -05:00
deads2k
20f9c2c545 find partial resource matches 2015-12-21 09:26:06 -05:00
Clayton Coleman
151b4e5958 Tweak explain messages and abstract client 2015-12-18 00:27:22 -05:00
Abhishek Shah
6f63875165 Reverting 18442 2015-12-17 16:57:29 -08:00
deads2k
41b78ad2b6 find partial resource matches 2015-12-16 10:19:31 -05:00
k8s-merge-robot
f525c2e587 Merge pull request #18268 from tmrts/sort/constants
Auto commit by PR queue bot
2015-12-09 08:44:01 -08:00
deads2k
66eecb963a update more kubectl bits for groupversion 2015-12-07 09:01:44 -05:00
Tamer Tas
5ac372dfce Alphabetize kubectl resource shortcuts list 2015-12-07 06:05:42 +02:00
deads2k
8679925847 update RESTMapping API to be properly typed 2015-11-25 14:02:37 -05:00
deads2k
5c4fb5bcbe make RESTMapper.KindFor 2015-11-25 14:02:37 -05:00
deads2k
9e9b9f2da3 fix outputversion restmapper 2015-11-25 12:15:48 -05:00
Janet Kuo
54b743bc05 Change resource "ingress" to "ingresses" in URL path and kubectl 2015-10-25 16:54:25 -07:00
Janet Kuo
57388f9f94 Support kubectl group/resource name 2015-10-06 13:12:32 -07:00
Prashanth Balasubramanian
99b0e051fc Kubectl printer 2015-09-29 18:51:24 -07:00
Mike Danese
77a06cbf05 Merge pull request #13183 from mikedanese/daemon_kubectl
Add daemonset support to kubectl
2015-09-16 19:02:36 -07:00
feihujiang
ba38a8764b Remove useless codes about minion 2015-09-16 14:22:53 +08: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
Marcin Wielgus
3f21071064 HorizontalPodAutoscaler in kubectl get 2015-09-03 13:49:06 +02: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
Mike Danese
8e33cbfa28 rewrite go imports 2015-08-05 17:30:03 -07:00
Tim Hockin
c4b707192d Remove deprecated 'se' resource alias 2015-07-23 12:04:01 -07:00
Tim Hockin
30697aeef2 Add an 'ns' shortcut, tidy capital letters 2015-07-15 11:31:29 -07:00
Tim Hockin
3c2359384c Add 'ep' as a shortcut for 'endpoints' 2015-07-01 23:02:46 -07:00